HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Problems with cronjobs (http://www.howtoforge.com/forums/showthread.php?t=53412)

estebanmora 15th July 2011 16:06

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

/var/www/clients/client0/web5/cgi-bin/mva/cronjobs/deletesessions.pl

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 19:38

Code:

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

Suerte.

estebanmora 15th July 2011 21: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 22:25

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

estebanmora 15th July 2011 22: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 15th July 2011 23: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 09:18.

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