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 exe

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

2006-11-28 Thread Jochem Maas
} > > the $res is the resulting output of the cmd, the $rval is the returned err > val of the cmd... thanks for your help - I did actual fix the problem already - it turned out to a 'you gotta redirect stderr thang' > > > > -----Original Message- > From: S

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

2006-11-28 Thread bruce
resulting output of the cmd, the $rval is the returned err val of the cmd... -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 dump

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 i

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: >>

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 lo

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 (http://www.php.ne

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 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 (som