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
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
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
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
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
[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
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
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
[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
9 matches
Mail list logo