Page 1 of 1

Crontab usage!

Posted: Fri Feb 25, 2005 11:57 am
by Joe
How can you tell if your server is allowed to use crontab?.

Joe 8)

Posted: Fri Feb 25, 2005 2:53 pm
by Buddha443556
Check your control panel for a cron function or ask your host.

Posted: Fri Feb 25, 2005 4:11 pm
by Joe
It is actually a bit more complicated than that. I am fairly new to crontab and I am creating a cron job compiler with php which is going great, however I need a routine that will test to see if crontab is enabled.


Joe 8)

Posted: Fri Feb 25, 2005 4:34 pm
by Buddha443556
Got shell access? I would guess so. Try:

Code: Select all

crontab -l
You'll get an error massage a long the lines of "You are not allowed to use cron." if you don't have access.

Posted: Fri Feb 25, 2005 6:23 pm
by Joe
Ah ha. That is exactly what I required. Thanks mate!

Posted: Fri Feb 25, 2005 7:03 pm
by smpdawg
Man. This subject is becoming CRONic. ;)