in reply to Re: Automatically delete files
in thread Automatically delete files
I think i will use the cron option, just in case as Data64 pointed out and sparkyichi was good enough to convey that i may have a problem if i use the sleep option and the server reboots.
I have looked at cron through google and found some info about the * in the time and day etc but could you just explain the "30 1" and "-exec /bin/rm '{}' \;" parts.
I get that -exec is trying to execute somthing but what, does this remove the dir, and if so can i put my perl script call in here instead so it reads:
30 1 * * * -mtime 1 -exec/home/march05/msc0516/public_html/Blast/dele +teFiles.pl;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Automatically delete files
by davidrw (Prior) on Aug 02, 2005 at 16:30 UTC |