PDA

View Full Version : How do i set the cron jobs



JosHost
01-22-2007, 04:51 AM
Hello,
i tried hours to get the cron job runing,
i have now installed the webmin interface and i tired all variations of paths,
1)/home/user/turns.php
2)/domains/sub.domains.com/public_html/turns.php


3)/usr/local/lib/php /home/user/domains/subdomain.domain.com/public_html/turns.php

/bin/sh: /usr/local/lib/php: is a directory < i get this line a lot after i am runing the cron in the webmin interface,

can some plz point me on how to make the cron job work with the correct path ?

Thank you

smtalk
01-22-2007, 05:49 AM
Use


/usr/local/bin/php /home/user/domains/subdomain.domain.com/public_html/turns.php

Insted of


/usr/local/lib/php /home/user/domains/subdomain.domain.com/public_html/turns.php

nobaloney
01-22-2007, 11:47 AM
You should always use the DA control panel instead of Webmin when creating cronjobs. DA staff has posted previously that they don't support the use of Webmin with DA.

Jeff

divinelighting
08-26-2009, 05:10 AM
I've tried every format I could find in this forum and still cannot get my cron job to execute. I've even tried to edit crontab and crond but nano says that it has converted the file from mac and all i see is gibberish.

This is what I am trying to do:

/usr/local/bin/get '/home/divine/divinelighting.com/public_html/googlefroogle.php?feed=fy_uy_tp'
I've also tried such things as:

/usr/local/bin/php -q home/divine/divinelighting.com/public_html/googlefroogle.php?feed=fy_uy_tp
and

/usr/local/bin/php /home/divine/divinelighting.com/public_html/googlefroogle.php?feed=fy_uy_tp
Among others. Any help is appreciated.

scsi
08-26-2009, 06:17 AM
You cant add the "?feed=fy_uy_tp" part on the end. You will have to find another way to run it.

divinelighting
08-26-2009, 07:41 PM
Is there some way I could use the wget command?

divinelighting
09-01-2009, 04:41 PM
Seriously, I've been trying to get this cron job running for a year now. Any help is appreciated.

scsi
09-01-2009, 05:57 PM
so just change feed= to an argument

/path/to/file.php <feed-stuff-here>

mojimoji
09-30-2010, 06:06 PM
hello friends

for cronjob in directadmin is 2 solution :

solution 1 - wget http://www.mysite.com/example.php

----------

solution 2 - usr/local/bin/php -q /home/[usernameyoursite]/public_html/example.php


solution 2 is very good :-*

bye