![]() |
I need help with crontabs
I am trying to set up something to update every six hours.
Is this right? Minute Hour Day Month Weekday 0 */6 * * * Command /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi --main Im getting this error in my email. bin/sh: line 1: /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi: No such file or directory Thank you in advance |
./home/username? you substituted in your username right?
nonetheless the path looks wrong. |
* 0,6,12,18 * * * /bin/sh /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi
|
That is a 6hour update yes
|
Thank you everyone. Yes sacX /home/username is part of the path.
JFPdude, thank you but where do you come up with /bin/sh? Not that I doubt you, its just I havent read anything about that. I guess thats why its not working. :1orglaugh Thank you V_RocKs. so the numbers are right but the command to run is wrong? |
actually you may need to change the /bin/sh to something else but the correct syntax is:
1 2 3 4 5 commandtorun /path/to/file 1 = minutes 2 = hours 3 = day of month 4 = month 5 = day of week 1=monday - 7=sunday actually by default if you need /bun/sh to run your file you don't need to put the /bin/sh in there but if you want another program to run the file you need to put the command in. IE: wget |
ls -l /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi
Does it find the file if you do that? |
on most servers /home is really /usr/home and sometimes cron won't run unless you make the path /usr/home/blah blah
|
Quote:
|
that only lists your crontabs ..
ls -l /path/to/your/script should find the script |
Quote:
Quote:
Thanks anyway guys. Ill just sit and wait for host to get back to me. Maybe my icq isnt working. Oops forget the host. I just remembered dont dont do script help. |
hit me up 44-33-144 If you have ssh I'll figure out for you
|
Quote:
|
Thanks again JFPdude! :thumbsup
|
All times are GMT -7. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123