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
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;
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
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 =
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
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
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 =
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
...
-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
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
10 matches
Mail list logo