cron job help

Wrong cron command. cd/usr/bin/php -q /home/lworld/public_html/periodic/cron.php

What command would I please use and how many * * * * *

error msg i

/bin/sh: cd/usr/bin/php: No such file or directory
Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com
Quote · 1 Jan 2010

You are missing a space after cd

Should be cd /usr/bin/php -q /home/lworld/public_html/periodic/cron.php

If your on terabyte. the proper command is.

cd /usr/local/bin/php -q /home/lworld/public_html/periodic/cron.php


https://www.deanbassett.com
Quote · 1 Jan 2010

Bless your heart D:) tyvm

Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com
Quote · 1 Jan 2010

Hi D I still get an error Not a directory after putting in cd /usr/local/bin/php -q /home/lworld/public_html/periodic/cron.php

/bin/sh: line 0: cd: /usr/bin/php: Not a directory
Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com
Quote · 1 Jan 2010

Opps, that line is not right. Give me a minute, i will get back to you. I have to look mine up.

https://www.deanbassett.com
Quote · 1 Jan 2010

Ok. try it this way instead. I was not paying attention to that line you posted and things are apparently reversed. The line as dolphin recommends would look like this.


cd /home/lworld/public_html/periodic/; /usr/local/bin/php -q cron.php



But i have mine setup like this and it also works.

/usr/local/bin/php -q /home/lworld/public_html/periodic/cron.php


https://www.deanbassett.com
Quote · 1 Jan 2010

Is this witch the five * before?
mine look sthis *****/usr/local/bin/php -q /home/xxxxx/xxxxxxx/public_html/periodic/cron.php 

But i have mine setup like this and it also works.

/usr/local/bin/php -q /home/lworld/public_html/periodic/cron.php

But video processing is not working.

Kids first
Quote · 1 Jan 2010

Is this witch the five * before?
mine look sthis *****/usr/local/bin/php -q /home/xxxxx/xxxxxxx/public_html/periodic/cron.php

But i have mine setup like this and it also works.

/usr/local/bin/php -q /home/lworld/public_html/periodic/cron.php

But video processing is not working.

The 5 * are not to appear as part of the command line Unless of course your looking at the actual cron file itself.

If your doing this from cpanal. The stars are the time settings that the cron is to run which means every minute, hour, day, month and weekday.

https://www.deanbassett.com
Quote · 1 Jan 2010

oke  I try without them...

Kids first
Quote · 1 Jan 2010

Hi D I still get an error Not a directory after putting in cd /usr/local/bin/php -q /home/lworld/public_html/periodic/cron.php

/bin/sh: line 0: cd: /usr/bin/php: Not a directory

im going now to look at what your setting should be

after these messages ^ we'll be right back

Regards,

DosDawg

Happy New Year

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 1 Jan 2010

Hi D I still get an error Not a directory after putting in cd /usr/local/bin/php -q /home/lworld/public_html/periodic/cron.php

/bin/sh: line 0: cd: /usr/bin/php: Not a directory

ok give this one a try;

cd /home/lworld/public_html/periodic; /usr/local/bin/php -q cron.php

because look at what you have there you are trying to change directory to the path of php rather than change the directory to the path where the file is at that is going to fire the cron job.

Happy New Year

DosDawg

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 1 Jan 2010

Hi D I still get an error Not a directory after putting in cd /usr/local/bin/php -q /home/lworld/public_html/periodic/cron.php

/bin/sh: line 0: cd: /usr/bin/php: Not a directory

ok give this one a try;

cd /home/lworld/public_html/periodic; /usr/local/bin/php -q cron.php

because look at what you have there you are trying to change directory to the path of php rather than change the directory to the path where the file is at that is going to fire the cron job.

Happy New Year

DosDawg

Look up dos. I mentioned that already. LOL. At least she might not miss it.

https://www.deanbassett.com
Quote · 1 Jan 2010

oke now i could upload and view a small video... but got different big emails  with errors.
Have set in php.ini on runtime version op gpc , but this can be have other  problems for my other domains under 6.1.6

keep looking further on this.

Kids first
Quote · 1 Jan 2010

D no emails with cd /home/lworld/public_html/periodic/; /usr/local/bin/php -q cron.php I have been waiting for an email and have it set to  *****

I will need to talk to DosDawg about the settings.

Thanks for helping but I have to go sleep I been awake too long and I'm exhausted.

Jenn

Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com
Quote · 1 Jan 2010

Thanks DosDawg and D I go check that out now, sorry I missed those replied when emailing.

Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com
Quote · 1 Jan 2010

Thanks D DosDawg its working, probably was I just didn't realize if the video uploaded it worked, least I'm not gertting an email a min now..Cheers

Jenn

Jennifer Bogan .. Acc. Dip. Psychology - EMAIL: jennifer.bogan@gmail.com
Quote · 1 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.