RE: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-29 Thread Richard Lynch
exec() doesn't show anything on the screen, I don't think... You'd have to echo implode('', $output) to show the results on the screen... On Tue, November 28, 2006 5:37 am, Edward Kay wrote: As a check, does 'apache2ctl graceful' actually output anything to STDOUT? I would expect your exec

[PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread Jochem Maas
I have been trying to figure out how to use exec to run some commandline scripts (some perl scripts mysql in this case) WITH the output of the commands run via exec being shown on the screen. neither of these examples have the desired effect: $output = array(); $exit = 0;

RE: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread Edward Kay
As a check, does 'apache2ctl graceful' actually output anything to STDOUT? I would expect your exec commands to work - try with something like 'ls' or 'whoami' and see if you get any results that way. Edward I have been trying to figure out how to use exec to run some commandline scripts (some

Re: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread Stut
Jochem Maas wrote: I have been trying to figure out how to use exec to run some commandline scripts (some perl scripts mysql in this case) WITH the output of the commands run via exec being shown on the screen. neither of these examples have the desired effect: $output = array(); $exit =

Re: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread clive
Jochem Maas wrote: I have been trying to figure out how to use exec to run some commandline scripts (some perl scripts mysql in this case) WITH the output of the commands run via exec being shown on the screen. have you tried shell_exec ? clive -- PHP General Mailing List

Re: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread Jochem Maas
Edward Kay wrote: As a check, does 'apache2ctl graceful' actually output anything to STDOUT? I well apparently the 'Syntax OK' message is output by apache2ctl to STD_ERR; which is weird if you ask me - not what I would expect (how in any way is 'Syntax OK' an error?) oh well I guess I have a

Re: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread Jochem Maas
Stut wrote: Jochem Maas wrote: I have been trying to figure out how to use exec to run some commandline scripts (some perl scripts mysql in this case) WITH the output of the commands run via exec being shown on the screen. neither of these examples have the desired effect: $output =

Re: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread Jochem Maas
clive wrote: Jochem Maas wrote: I have been trying to figure out how to use exec to run some commandline scripts (some perl scripts mysql in this case) WITH the output of the commands run via exec being shown on the screen. have you tried shell_exec ? no - but that's because it doesn't

RE: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread bruce
... -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 3:40 AM To: Jochem Maas Cc: [php] PHP General List Subject: Re: [PHP] CLI script exec() - how to control what gets dumped on the screen. Jochem Maas wrote: I have been trying to figure out how to use

Re: [PHP] CLI script exec() - how to control what gets dumped on the screen.

2006-11-28 Thread Jochem Maas
to a 'you gotta redirect stderr thang' -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 3:40 AM To: Jochem Maas Cc: [php] PHP General List Subject: Re: [PHP] CLI script exec() - how to control what gets dumped on the screen. Jochem