script to auto delete on new bs builds not work

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
stupsi99
DD-WRT Novice


Joined: 09 May 2015
Posts: 25

PostPosted: Mon Mar 19, 2018 14:06    Post subject: script to auto delete on new bs builds not work Reply with quote
i have a script to delete files after x days for my mounted usb-stick. it works on older bs build r30826 and on newer kong releases... but not on newer bs builds !?!?! any idea how to modify the script for new bs builds ?!?

/tmp/crontab || echo "30 1 * * * root /usr/bin/find /tmp/mnt/sda1/Video/Cam00/ -mtime +3 -exec rm {} \;" >>/tmp/crontab
/tmp/crontab || echo "0 2 * * * root /usr/bin/find /tmp/mnt/sda1/Video/Cam01/ -mtime +3 -exec rm {} \;" >>/tmp/crontab

it generates 2 entrys in crontab for folder cam00 and cam01.
with newer bs build i get always error ?

br stupsi99
Sponsor
stupsi99
DD-WRT Novice


Joined: 09 May 2015
Posts: 25

PostPosted: Wed Mar 21, 2018 21:02    Post subject: Reply with quote
no one can help ??
no other idea ?

stupsi
stupsi99
DD-WRT Novice


Joined: 09 May 2015
Posts: 25

PostPosted: Fri Mar 23, 2018 23:39    Post subject: Reply with quote
I try it with putty on the router and the script wont work (without the cron job) it looks like the find command wont recognize mtime anymore... on bs build

stupsi
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum