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)
-   -   Help! Crontab makes me cry.. (https://gfy.com/showthread.php?t=628822)

JD 07-03-2006 01:07 AM

Help! Crontab makes me cry..
 
I'm trying to install a smartthumbs cron and it's fagging out on me. Here's what I'm doing:

I SSH into my box

#crontab -e

* /2 * * * * /usr/bin/php -q
/var/www/sites/www.domain_censored.com/html/st/admin/cron.php -server 1 > /dev/null 2>&1

exit then I get an error:


Quote:

crontab: installing new crontab
"/tmp/crontab.D4YlWe/crontab":0: bad hour
errors in crontab file, can't install.
Do you want to retry the same edit?

anybody know wtf is going on?

OS = Debian if that means anything to anyone lol

MyNameIsNobody 07-03-2006 01:08 AM

sorry, I'm just here for the sig spot..

JD 07-03-2006 01:09 AM

Quote:

Originally Posted by MyNameIsNobody
sorry, I'm just here for the sig spot..

hurry up and get banned

baddog 07-03-2006 01:11 AM

DirectAdmin makes it so easy

JD 07-03-2006 01:14 AM

Quote:

Originally Posted by baddog
DirectAdmin makes it so easy

HEY! That's fan fucking tastic! Too bad it has nothing to do with my question. :winkwink:

flashbang 07-03-2006 01:15 AM

*/2

not /2

and you have one too many *

or maybe you meant */2 * * * *

kuthi123 07-03-2006 01:20 AM

you missed * it should be like */2 for every other hour

JD 07-03-2006 01:23 AM

I just tried

*/2 * * * /usr/bin/php -q /var/www/sites/www.domain_censored.com/html/st/admin/cron.php -server 1 > /dev/null 2>&1

and it's saying bad day of week:(

am i just fucking retarded?

baddog 07-03-2006 01:29 AM

maybe this will help

You can specifiy exact times using commas to separate them. eg: 1,2,3 (minutes 1,2 and 3)
You can specify spans using a dash. eg: 5-7 (minutes 5 to 7)
You can specify intervals using a star and a forward slash. eg: */2 (every 2nd minute)
You can combine them to create a more precise schedule. eg: 1,5,11-15,30-59/2 (minutes 1, 5, 11 to 15 and every 2nd minute between 30 and 59)
Note that there are no spaces

Tempest 07-03-2006 01:31 AM

Are you missing a >?

try:

* */2 * * * /usr/bin/php -q /var/www/sites/www.domain_censored.com/html/st/admin/cron.php -server 1>>/dev/null 2>&1

and maybe your OS needs it slightly different like

* 0-23/2 * * * /usr/bin/php -q /var/www/sites/www.domain_censored.com/html/st/admin/cron.php -server 1>>/dev/null 2>&1

How often did you want it to execute?

gooddomains 07-03-2006 01:36 AM

crontab is a bitch

JD 07-03-2006 01:40 AM

turns out I had the fucking syntax right after post #8.......fucking putty not being full screen had broken the lines into their own instead of keeping the shit on 1 line like I had typed it :mad:

thanks for all your help guys :) much appreciated

studiocritic 07-03-2006 04:48 AM

grab securecrt.. putty sucks

PussyTeenies 07-03-2006 05:26 AM

spermy

Code:

#st pussyteenies
*/2 * * * * /usr/local/bin/php -q /usr/local/apache/htdocs/pussyteenies.com/st/admin/cron.php -server 1 > /dev/null 2>&1
* * * * * /usr/bin/nice /usr/local/bin/php -q /usr/local/apache/htdocs/pussyteenies.com/st/admin/autocrop.php > /dev/null 2>&1
* * * * * /usr/bin/nice /usr/local/bin/php -q /usr/local/apache/htdocs/pussyteenies.com/st/admin/check.php > /dev/null 2>&1


Godsmack 07-03-2006 06:47 AM

thanks Bill

CIVMatt 07-03-2006 06:47 AM

Quote:

Originally Posted by MyNameIsNobody
sorry, I'm just here for the sig spot..



lol that made me laugh (and cry a little )

themanager 07-03-2006 06:50 AM

what a painful bite.

marketsmart 07-03-2006 07:07 AM

don't mind me, i'm just browsing...

Basic_man 07-03-2006 07:09 AM

Glad it's working now. If you have any template problem with ST, you can hit me up on ICQ (34916475). You can let me do all the template works for a little :)

Godsmack 07-04-2006 02:12 PM

Quote:

Originally Posted by Basic_man
Glad it's working now. If you have any template problem with ST, you can hit me up on ICQ (34916475). You can let me do all the template works for a little :)

Look under Tools/template maker

We added a template maker tool a long time ago :-) and it works :-)


All times are GMT -7. The time now is 01:01 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123