-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 4:30 PM
To: 'Darren Gamble'; 'Walker, Roy'; '[EMAIL PROTECTED]'
Subject:RE: [PHP] Regular Expressions? Help!
exec() can capture ALL output from a command if you supp
No. I think there is a carriage return (\n), but there is not a blank line
at the end.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:07 PM
To: 'Walker, Roy'; '[EMAIL PROTECTED]'
Subject:RE: [PHP]
Sorry. Yes. It looks exactly like it should. And I see the ouput from the
command like it should on the screen, I just can't capture it in the script.
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 2:59 PM
To: 'W
:50 PM
To: 'Walker, Roy'; '[EMAIL PROTECTED]'
Subject:RE: [PHP] Regular Expressions? Help!
exec() works for me.
Remember, though, it returns only the LAST line. Have you tried the
following to ensure it's constructing the command you think it is:
$mycmd =
Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 2:07 PM
To: 'Walker, Roy'; '[EMAIL PROTECTED]'
Subject:RE: [PHP] Regular Expressions? Help!
exec()
-Original Message-----
From: Walker, Roy [mailto:[EMAIL PROTECTED]]
Se
nd it was empty. Any
ideas?
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:54 PM
To: 'Walker, Roy'
Subject:RE: [PHP] Regular Expressions? Help!
well, ya might try:
$my_array = explode( "\" ",$output);
There will be a specific number of variables returned. I just wanted to set
all the output to a string and just run through it to grab the variables.
Thanx
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 1:28 PM
To: 'Walker
I am trying to do a match for an expression and it to a variable from the
output of a command:
How can look through $output to set the information returned as different
variables the output would look like:
variable1:"some information" variable2:"some information"
I want to set each variable
I have been playing with this for a couple of days and have run into a few
issues:
I am wanting to run a set number of multiple processes (ie 25 at a time). I
can't use the exec command since it will not wait for the output (this is a
delayed response - network based).
$cmd = "/path.to/some.cmd
9 matches
Mail list logo