Cron Job Set Up Help Please

software development

#1

Hi,

I am trying to set up a cron job, but no sucess.

Using DreamHost panel, the line breaks and there is no fix to this as I was reading here on the boards.

Putty, I can not log in for some reason…

Using WinSCP looks OK, but gives me an error…

If I run this in the WinSCP terminal all is OK:

/usr/local/bin/php /home/user/site.com/cron-invia.php

When I try to set up cron job like this:
01 * * * * /usr/local/bin/php /home/user/site.com/cron-invia.php
it gives me error:
Failed with return code 127 and error message -bash: line 36: 01: command not found.

Could anybody help please?


#2

Hi qwerty,
read more about cron job system on dreamhost here:
http://wiki.dreamhost.com/index.php/Crontab
http://blog.dreamhosters.com/kbase/index.cgi?area=2506

Best Regards

Admin Sanremo IN