PDA

View Full Version : A cron job question



deepak
06-20-2005, 04:35 AM
Hi
I want to setup a cron job to delete all files in the tmp dir. Should the path be /tmp/* or is it /home/username/tmp/* as given in some sites as an example.

Thanks in advance
Deepak

Sarah
06-22-2005, 01:59 PM
Go to the link below to learn how to set up a cron job in cPanel:

http://www.cpanel.net/docs/cpanel/

Sarah :)

deepak
06-23-2005, 06:20 PM
Go to the link below to learn how to set up a cron job in cPanel:

http://www.cpanel.net/docs/cpanel/

Sarah :)

Thanx for the reply, but it doesnt help.
I know how to setup a cron job, but just wanted to know the path for the tmp folder of my account.

The command would be
rm /home/myusername/tmp/*
or
rm /tmp/*

Anyway, I think it might be the first one, I have set it up. If it works, I will post it here as it might help others.

Deepak