Re: Running PHP File under Crontab...

2010-01-17 Thread mikel king
There are a couple of ways. My prefrence is to control the output directly from the app in PHP. However you should be able to pipe the output to a file without issue. Cheers, m! On Jan 17, 2010, at 15:48, Diego Montalvo wrote: One other question, is there a way to copy the ouput of the c

Re: Running PHP File under Crontab...

2010-01-17 Thread Diego Montalvo
One other question, is there a way to copy the ouput of the crontab "php" file to another file? Simply the "hello world" output and not the code... ?? 2010/1/17 mikel king : > > On Jan 17, 2010, at 3:01 PM, Diego Montalvo wrote: > >> I am using " >> >> 2010/1/17 mikel king : >>> >>> On Jan 17,

Re: Running PHP File under Crontab...

2010-01-17 Thread mikel king
On Jan 17, 2010, at 3:01 PM, Diego Montalvo wrote: I am using " 2010/1/17 mikel king : On Jan 17, 2010, at 2:30 PM, Diego Montalvo wrote: CLI meaning, if I can run and excute in command line, a php file can run in crontab? doing the following in shell: "# php helloworld.php" - "hello

Re: Running PHP File under Crontab...

2010-01-17 Thread Nerius Landys
> I am wanting to execute a PHP file 5 times a day via crontab. Is it > possible?  If so what is the proper crontab command for this? Hi. I'm running several PHP programs via cron. #1 Make sure you have CLI (command line interface) in your PHP port: As root, > cd /usr/ports/lang/php5 > make c

Re: Running PHP File under Crontab...

2010-01-17 Thread Diego Montalvo
I am using " 2010/1/17 mikel king : > > On Jan 17, 2010, at 2:30 PM, Diego Montalvo wrote: > >> CLI meaning, if I can run and excute in >> command line,  a php file can run in crontab?  doing the following in >> shell: "# php helloworld.php" - "hello world" is produced... >> >> Thanks! >> >> > >

Re: Running PHP File under Crontab...

2010-01-17 Thread Diego Montalvo
CLI meaning, if I can run and excute in command line, a php file can run in crontab? doing the following in shell: "# php helloworld.php" - "hello world" is produced... Thanks! 2010/1/17 mikel king : > > > On Jan 17, 2010, at 1:28 PM, Diego Montalvo wrote: > > I am wanting to execute a PHP f

Re: Running PHP File under Crontab...

2010-01-17 Thread mikel king
On Jan 17, 2010, at 1:28 PM, Diego Montalvo wrote: I am wanting to execute a PHP file 5 times a day via crontab. Is it possible? If so what is the proper crontab command for this? Thanks, Diego Diego, Certainly, but you must ensure that you have the CLI version of PHP installed. Reg