Re: Crontabs

From: Date: Tue, 18 Jun 2002 20:07:17 +0000
Subject: Re: Crontabs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102779@lists.php.net to get a copy of this message
He's referring to the script parser executable, ala: #!/bin/sh #!/usr/bin/perl In this case, you'd need the PHP "cgi" version installed, and do your script like this: #!/usr/bin/php -q <?php // your script ?> Set the script to executable, then set up a crontab entry with the path to the script. -Clay > From: "Matthew Ward" <email@inspirationstudios.co.uk> > Organization: Inspiration Studios > Reply-To: "Matthew Ward" <email@inspirationstudios.co.uk> > Date: Tue, 18 Jun 2002 20:55:54 +0100 > To: php-general@lists.php.net > Subject: Re: [PHP] Crontabs > > What do you mean by "appropriate #! at the top"? > > > "Analysis & Solutions" <danielc@analysisandsolutions.com> wrote in message > news:20020618195247.GB22751@panix.com... >> Matthew: >> >> On Tue, Jun 18, 2002 at 08:48:19PM +0100, Matthew Ward wrote: >>> >>> Basically, I want to get a PHP script to run every set amount of time, > so >>> what do I have to type in the "Command" box to get a PHP script to run? >> >> If your script has the appropriate #! at the top, you can type in the path >> and name of the script. Say, "/usr/home/username/dir/script.php" for >> example. >> >> Make sure the script has it's owner executable permission set (chmod 700, >> for example). >> >> --Dan >> >> -- >> PHP classes that make web design easier >> SQL Solution | Layout Solution | Form Solution >> sqlsolution.info | layoutsolution.info | formsolution.info >> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y >> 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#102779) next »