crontab

crontab

Posted by: bbobchef
Posted on: 2007-03-02 08:43:00

Hi I have a script that requires crontab to be set up the script instructions are

http://www.expertzzz.com/Wiki/home/103/

I am using putty I enter the path to the file and get this error

/usr/local/bin/php":0: bad minute
errors in crontab file, can't install.


This is the periodic.file I am trying to install

which phpMAILTO=rob@staticpresence.com<br />
0 0* * * /usr/local/bin/php -q

/home/kinkynik/www.staticpresence.com/aaa/periodic/cmd.php<br />
*/10 * * * * /usr/local/bin/php -q

/home/kinkynik/www.staticpresence.com/aaa/periodic/notifies.php<br />


Thanks in advance for any help

Re: crontab

Posted by: mao
Posted on: 2007-03-02 09:31:00

crontab -e
to edit the crontab file
You can find some info on the wiki..I suggest to set VIM as editor..

Cupons:MAO_HALFPRICE : pay only half of the price (L1 plans only) MAO97 get 97$ back

Re: crontab

Posted by: JohnGalt
Posted on: 2007-03-02 16:26:00

In reply to:

0 0* * * /usr/local/bin/php -q


Could use a space between 0 and *. Order looks messed up. Time and command need to be on one line:

MAILTO=rob@staticpresence.com
0 0 * * * /usr/local/bin/php -q /home/kinkynik/www.staticpresence.com/aaa/periodic/cmd.php
*/10 * * * * /usr/local/bin/php -q /home/kinkynik/www.staticpresence.com/aaa/periodic/notifies.php

Re: crontab

Posted by: mao
Posted on: 2007-03-03 02:26:00

I should stop to reply without reading messages first :)

Cupons:MAO_HALFPRICE : pay only half of the price (L1 plans only) MAO97 get 97$ back

Re: crontab

Posted by: bbobchef
Posted on: 2007-03-04 06:48:00

*update*

ok tried this

MAILTO=admin@nostringsfunuk.com
0 0 * * * /usr/local/bin/php -q /home/kinkynik/nostringsfunuk.com/sexcontacts/periodic/cmd.php
*/10 * * * * /usr/local/bin/php -q /home/kinkynik/nostringsfunuk.com/sexcontacts/periodic/notifies.php


but now get the error

crontab: installing new crontab
"/tmp/crontab.Sviz1q/crontab":1: bad day-of-week
errors in crontab file, can't install.


soz im still a newbie to this side of things.. What is vim?

ty rob


Re: crontab

Posted by: nathan823
Posted on: 2007-03-04 17:23:00

I had the same problem before.

If you are using putty in windows platform, the script may automatically go to next line although you did not press enter key. Just use the backspace to make the script is in one line.

Re: crontab

Posted by: bbobchef
Posted on: 2007-03-05 01:08:00

Ok tried that and it seem to be working now..

Thanks nathan

Re: crontab

Posted by: nathan823
Posted on: 2007-03-05 01:34:00

welcome.

I struggled the whole afternoon to solve the problem. I'm glad it solves your problem too. wink

Re: crontab

Posted by: silkrooster
Posted on: 2007-03-05 16:17:00

I had the same issue with it wrapping to next line. It tells in the wiki how to disable that, but I don't think it took.
Silk

My website

Tags: crontabputtywikiusr