![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
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
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Dec 2002
Location: New Zealand
Posts: 2,998
|
./home/username? you substituted in your username right?
nonetheless the path looks wrong.
__________________
Have Asian Language Traffic? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
* 0,6,12,18 * * * /bin/sh /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Damn Right I Kiss Ass!
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
|
That is a 6hour update yes
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
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. ![]() Thank you V_RocKs. so the numbers are right but the command to run is wrong?
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
ls -l /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi
Does it find the file if you do that? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
on most servers /home is really /usr/home and sometimes cron won't run unless you make the path /usr/home/blah blah
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
Quote:
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
that only lists your crontabs ..
ls -l /path/to/your/script should find the script |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | ||
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
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.
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
hit me up 44-33-144 If you have ssh I'll figure out for you
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
Quote:
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
|
Thanks again JFPdude!
![]()
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader |
![]() |
![]() ![]() ![]() ![]() ![]() |