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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-03-2005, 08:21 PM   #1
GiantGnome
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
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 08:27 PM   #2
sacX
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?
sacX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 08:30 PM   #3
JFPdude
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
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 08:31 PM   #4
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
That is a 6hour update yes
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 08:58 PM   #5
GiantGnome
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
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 09:04 PM   #6
JFPdude
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
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 09:05 PM   #7
swedguy
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?
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 09:20 PM   #8
JFPdude
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
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 09:22 PM   #9
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Quote:
Originally Posted by swedguy
ls -l /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi

Does it find the file if you do that?
It found it when I did crontab -l in SSH
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 09:24 PM   #10
JFPdude
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
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 09:44 PM   #11
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Quote:
ls -l /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi
Does it find the file if you do that?
No such file or directory


Quote:
that only lists your crontabs ..
ls -l /path/to/your/script should find the script
No such file or directory.

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
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 09:58 PM   #12
JFPdude
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
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 10:01 PM   #13
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Quote:
Originally Posted by JFPdude
hit me up 44-33-144 If you have ssh I'll figure out for you
Thank you. I just added you
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-03-2005, 10:49 PM   #14
GiantGnome
Confirmed User
 
Join Date: Jan 2004
Location: Nebraska
Posts: 4,344
Thanks again JFPdude!
__________________
NOOOOOOOOOOOOOOOOOOOOOOO-Darth Vader
GiantGnome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.