CronJobs?!

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
InternetX
Forum Newbie
Posts: 22
Joined: Tue Jan 21, 2003 1:57 pm
Location: Germany
Contact:

CronJobs?!

Post 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!
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post 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.
InternetX
Forum Newbie
Posts: 22
Joined: Tue Jan 21, 2003 1:57 pm
Location: Germany
Contact:

Post 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? =(
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post 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.
Post Reply