Cronjob Problem!


#1

Well i try to make this cron:

10 * * * * lynx --dump http://www.originalptr.com/scripts/admin/cronjobs.php > /dev/null

I use putty and write crontab -e.
After at the editor i paste the cronjob above.
I press F3 to save this cron and the editor tell me wrote 2 line.
I press Ctrl+X to exit from editor.
But when i return to ssh again i see this error:

crontab: installing new crontab
"/tmp/crontab.VExgme/crontab":1: bad minute
errors in crontab file, can’t install.

Well, where is the problem???
I try to enter only:

10 * * * * http://www.originalptr.com/scripts/admin/cronjobs.php

This works ok and when i type crontab -l i see this cronjob:

10 * * * * http://www.originalptr.com/scripts/admin/cronjobs.php

Unfortunately the first crontab is missing when i type crontab -l.
So where is the problem? The read me file of the script i use tell me to set as crontjob the first not the second. I really don’t know what is the difference between first and second cronjob, but i think they are same.

Please tell me where is the problem…
I want to save this cron:

10 * * * * lynx --dump http://www.originalptr.com/scripts/admin/cronjobs.php > /dev/null

Thanks a lot.


#2

when you are editing the crontab make sure you command appears on one line - it can’t wrap to the seconed line or it won’t work.

If you’re having troubles with that, just type the command up in notepad, save, upload, and type “crontab FileName” in the same directory where you uploaded the file.

hope this helps

-Matttail