Page 1 of 1
CronJobs?!
Posted: Thu Apr 03, 2003 9:33 am
by InternetX
Hello...
how can I set a CronJob?
I need a CronJob that every day at midnight run a Script.
How can I set it up?
Sorry for my english... I'm 15 and from Germany =/
I hope you can help me!
Posted: Thu Apr 03, 2003 9:56 am
by daven
You need permission to setup/edit cron. If you have permissions, use "crontab -e" to edit the crontab file. For more detailed information:
http://www.oreillynet.com/linux/cmd/cmd ... =c/crontab
note: occasionally the site acts funky. If you do not see the information correctly, just reload the page until it comes up.
Posted: Thu Apr 03, 2003 11:26 am
by InternetX
Thanks...
But I have a problem with it...
I have connected via SSH to my server.
Then I have entered "crontab -e" and I habe the line
"0 0 * * * /path/to/my/script.php"
Now... How can I save this file and this cronjob? =(
Posted: Thu Apr 03, 2003 12:28 pm
by daven
When you enter crontab, there should be a list of commands at the bottom of the screen. ^X, ^O, etc. The '^' stands for 'Ctrl'. To save and exit crontab, just hold control and hit X. When it asks you if you want to save, say yes. Alternately, use ^O (WriteOut) to save directly, then exit with ^X.