Re[2]: [PHP] Make cron file

2004-09-28 Thread Tom Rogers
Hi, Wednesday, September 29, 2004, 1:18:20 AM, you wrote: JB> [snip] JB> I need make a cron file, for example a .job file: JB> #mi hodimeseq jobcomment JB> 45 11** 0-5 php -q /home/test/test.php # Make backup JB> How can make it?. JB> [

Re: [PHP] Make cron file

2004-09-28 Thread Maciek Ruckgaber Bielecki
So I understand, correct me if i am wrong, that your problem is just to append a line to the file ? if that is the case: //open and place pointer at the end of the file $fhandler = fopen("file",'a'); fputs($fhandler,$string_with_code); fclose($fhandler); if not, the case and you are h

Re: [PHP] Make cron file

2004-09-28 Thread Juan Pablo Herrera
sorry, my cuestion is about the construction of the job file with php. I send parameters via POST: day, hours, minute, sentence for execuite with cron. This is cached for a php file that make the job file. Well, my problem is make this php file.I think to use file() for this, but maybe somebody thi

Re: [PHP] Make cron file

2004-09-28 Thread E SA
Juan, Are you trying to do so from inside a PHP script? If that is the case, you could do: $entry = "$min $h $d $m $s $command $comment"; $added = system ("echo $entry >> /var/spool/cron/tabs/$user", $retval); if ($retval) { echo "success"; } else { echo "failure"; } Please notice th

Re: [PHP] Make cron file

2004-09-28 Thread Maciek Ruckgaber Bielecki
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) then you simply add the line (crontab -e) 0 3 * * * /area_backup/bin/sync.php [args] hope i

Re: [PHP] Make cron file

2004-09-28 Thread John Nichel
Jay Blanchard wrote: At least he is CRON'ing a php script Well, we can't have that. Maybe we can talk the OP to change his question...maybe he can ask how to set up a cron to sync his system clock with a time server. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- P

RE: [PHP] Make cron file

2004-09-28 Thread Jay Blanchard
[snip] Juan Pablo Herrera wrote: > Hi! > I need make a cron file, for example a .job file: > #mi hodimeseq jobcomment > 45 11** 0-5 php -q /home/test/test.php # Make backup > How can make it?. How about asking on the proper list? Or Go

Re: [PHP] Make cron file

2004-09-28 Thread John Nichel
Juan Pablo Herrera wrote: Hi! I need make a cron file, for example a .job file: #mi hodimeseq jobcomment 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 ad

Re: [PHP] Make cron file

2004-09-28 Thread M. Sokolewicz
Jay Blanchard wrote: [snip] I need make a cron file, for example a .job file: #mi hodimeseq jobcomment 45 11** 0-5 php -q /home/test/test.php # Make backup How can make it?. [/snip] Type crontab -e and the cron file will be openedunl

RE: [PHP] Make cron file

2004-09-28 Thread Jay Blanchard
[snip] I need make a cron file, for example a .job file: #mi hodimeseq jobcomment 45 11** 0-5 php -q /home/test/test.php # Make backup How can make it?. [/snip] Type crontab -e and the cron file will be openedunless you're on a Wind

[PHP] Make cron file

2004-09-28 Thread Juan Pablo Herrera
Hi! I need make a cron file, for example a .job file: #mi hodimeseq jobcomment 45 11** 0-5 php -q /home/test/test.php # Make backup How can make it?. Regards. JP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: