How to run CRON


#1

hai,

I need to run a set of command at 12am every day. unfortunately I’m not sure how to set the CRON jobs done. I have some idea on time setting and all but not the CRON itself. whenever i execute the CRON directly from ssh, an error “command not found” come out.

thanks, appreciate any help

whizjet


#2

see the wiki article on crontab, that should help. :slight_smile:

–Matttail
art.googlies.net - personal website


#3
  1. ssh in
  2. type crontab -e at the prompt to edit the cronjob file
  3. type the following, make sure it’s all on one line. Replace your account name and domain name and file u want to run

30 1 * * * /usr/local/bin/php /home/yourusername/yourdoman.com/pathtofiletorun/file.php