Re: Make cron file

From: Date: Tue, 28 Sep 2004 15:57:15 +0000
Subject: Re: Make cron file
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-198076@lists.php.net to get a copy of this message
I do not understand what is the problem, you just add the the time format as should be and put the following at the beginning of your script: #!/usr/local/bin/php -q (or your path to the php interpreter) <?PHP php code here ?> then you simply add the line (crontab -e) 0 3 * * * /area_backup/bin/sync.php [args] hope it helps, and yes, this is probably the wrong list mate ;-) Cheers, On Tue, Sep 28, 2004 at 11:47:51AM -0400, John Nichel wrote: > Juan Pablo Herrera wrote: > >Hi! > >I need make a cron file, for example a .job file: > >#mi ho di me seq job comment > >45 11 * * 0-5 php -q /home/test/test.php # Make backup > >How can make it?. > > How about asking on the proper list? Or Google? > > Do we now add Cron to the list what this list supports? > > -- > John C. Nichel > ÜberGeek > KegWorks.com > 716.856.9675 > john@kegworks.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Maciek Ruckgaber Bielecki "All our lauded technological progress -- our very civilization - is like the axe in the hand of the pathological criminal." --Albert Einstein--

« previous php.general (#198076) next »