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
}
>
> 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
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
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
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:
>>
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
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
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 =
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
9 matches
Mail list logo