HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Problems with cronjobs (

estebanmora 15th July 2011 17:06

Problems with cronjobs
How can I run a perl script from a cron job. The following command:


in the cron job fails to work. Also, how can I run a PHP script from the command line. With ISPConfig 2 there were no problems, but I'm having problems with ISPConfig 3.

pititis 15th July 2011 20:38


/usr/bin/perl /var/www/clients/client0/web5/cgi-bin/mva/cronjobs/
Where /usr/bin is the path to perl in ubuntu/debian


estebanmora 15th July 2011 22:25

Thanks for the reply. I didn't work. I tried placing the whole command within a bash script but it didn't work either. I don't know what to do.

pititis 15th July 2011 23:25

Are you using url, jailed, or full cron job?

estebanmora 15th July 2011 23:37

The cron job belongs to a website that belongs to a client that has:

Allowed cron job types: -1
Max. type of cron jobs (chrooted and full implies url): Full Cron

A lot of my websites rely on downloading information (using perl and php scrits) via cron jobs. So far the server is useless, I have to do all by hand.

pititis 16th July 2011 00:03

umm, did you set properly group and owner for the script and directories?

Any error in cron.log?

All times are GMT +2. The time now is 16:41.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.