GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   I need help with crontabs (https://gfy.com/showthread.php?t=463434)

GiantGnome 05-03-2005 08:21 PM

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

sacX 05-03-2005 08:27 PM

./home/username? you substituted in your username right?

nonetheless the path looks wrong.

JFPdude 05-03-2005 08:30 PM

* 0,6,12,18 * * * /bin/sh /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi

V_RocKs 05-03-2005 08:31 PM

That is a 6hour update yes

GiantGnome 05-03-2005 08:58 PM

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?

JFPdude 05-03-2005 09:04 PM

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

swedguy 05-03-2005 09:05 PM

ls -l /home/username/public_html/hornygnome.com/cgi-bin/tgp/cron.cgi

Does it find the file if you do that?

JFPdude 05-03-2005 09:20 PM

on most servers /home is really /usr/home and sometimes cron won't run unless you make the path /usr/home/blah blah

GiantGnome 05-03-2005 09:22 PM

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

JFPdude 05-03-2005 09:24 PM

that only lists your crontabs ..

ls -l /path/to/your/script should find the script

GiantGnome 05-03-2005 09:44 PM

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.

JFPdude 05-03-2005 09:58 PM

hit me up 44-33-144 If you have ssh I'll figure out for you

GiantGnome 05-03-2005 10:01 PM

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

GiantGnome 05-03-2005 10:49 PM

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