john_24

Registered
Jul 28, 2006
3
0
151
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 a moderator:

systemtek

Member
Jul 21, 2006
16
0
151
Staffordshire, England
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: