![]() |
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:
anybody know wtf is going on? OS = Debian if that means anything to anyone lol |
sorry, I'm just here for the sig spot..
|
Quote:
|
DirectAdmin makes it so easy
|
Quote:
|
*/2
not /2 and you have one too many * or maybe you meant */2 * * * * |
you missed * it should be like */2 for every other hour
|
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? |
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 |
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? |
crontab is a bitch
|
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 |
grab securecrt.. putty sucks
|
spermy
Code:
#st pussyteenies |
thanks Bill
|
Quote:
lol that made me laugh (and cry a little ) |
what a painful bite.
|
don't mind me, i'm just browsing...
|
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 :)
|
Quote:
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