Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 30th August 2009, 13:43
Thomas Jensen Thomas Jensen is offline
Senior Member
Join Date: Apr 2009
Posts: 127
Thanks: 5
Thanked 1 Time in 1 Post
Default Custom crontab running clients PHP file

One of my clients would like a PHP file to be run as a crontab every third hour.
I thought of something like:
0 */3 * * * "php -q /var/www/clientsdomain.dk/web/maintain.php"
But the file should be run just like it was one of his visitors who visited the file through a browser. So he can include files and so on.

Thanks in advance.
Reply With Quote
Sponsored Links
Old 30th August 2009, 14:49
id10t id10t is offline
Senior Member
Join Date: Nov 2008
Posts: 242
Thanks: 2
Thanked 22 Times in 22 Posts

0 */3 * * * "wget http://www.clientsdomain.dk/maintain.php"

Although you probably want to redirect stderr and stdout somewhere...
Reply With Quote


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
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 14:21
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
Failover with VMWare Server - /var/vm isn't the right size.. Bart van Kleef HOWTO-Related Questions 24 30th August 2008 12:00
ispconfig php 5 errors itamarjp Installation/Configuration 8 25th April 2008 11:20
Installations Problem @ PHP thryb Installation/Configuration 1 7th November 2007 14:41

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

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