#1  
Old 15th July 2011, 17:06
estebanmora estebanmora is offline
Junior Member
 
Join Date: May 2009
Posts: 24
Thanks: 1
Thanked 1 Time in 1 Post
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 15th July 2011, 20:38
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default

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.
Reply With Quote
  #3  
Old 15th July 2011, 22:25
estebanmora estebanmora is offline
Junior Member
 
Join Date: May 2009
Posts: 24
Thanks: 1
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #4  
Old 15th July 2011, 23:25
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default

Are you using url, jailed, or full cron job?
Reply With Quote
  #5  
Old 15th July 2011, 23:37
estebanmora estebanmora is offline
Junior Member
 
Join Date: May 2009
Posts: 24
Thanks: 1
Thanked 1 Time in 1 Post
Default

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.
Reply With Quote
  #6  
Old 16th July 2011, 00:03
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 39
Thanked 89 Times in 68 Posts
Default

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

Any error in cron.log?
Reply With Quote
Reply

Bookmarks

Tags
cron jobs, perl, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems installing LAMP - MySQL and PHP5 JosBR Server Operation 5 19th December 2009 22:00
Courierr Errors were encountered while processing AsDsL General 1 30th November 2009 09:03
E: Sub-process /usr/bin/dpkg returned an error code (1) ergti Installation/Configuration 1 16th August 2009 13:36
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 10:11
Empty Recycle Bin jon335 General 40 6th May 2006 12:56


All times are GMT +2. The time now is 07:37.


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