I want to create a cron job in order to delete the "tmp" directory from my ftp which is storing the webalizer and more else.can anyone help me with that command?to delete always that directory.thanks a lot.
I want to create a cron job in order to delete the "tmp" directory from my ftp which is storing the webalizer and more else.can anyone help me with that command?to delete always that directory.thanks a lot.
Last edited by chirpy; 08-07-2006 at 04:48 AM.
Something like :
rm /tmp/*.log #remove all files with .log
This will remove all files that are .log in the tmp directory. Obviously ensure that you have the correct directory in your script, might be /home/username/tmp/*.log
I might be tempted to keep the directory ! but just delete whats in it, if you have double checked you deff dont want anything in the directory.
Thanks
Last edited by systemtek; 08-07-2006 at 05:51 AM.
SystemTek
Computer - Electronics - Telecoms
Site : http://www.systemtek.co.uk
Support Forum : http://forum.systemtek.co.uk