On Wednesday 06 March 2002 18:23, Sven Jacobs wrote:
> I want to run a shell script, all the values that are returned normal by
> that script I want to put as var.
> For example
> tracert X.X.X.X
> 1 <10 ms <10 ms <10 ms blablabla.bla.com [X.X.X.X]
> 2 <10 ms 10 ms 10 ms RFC1918-Host [X.X.X.X]
> 3 <10 ms 10 ms 10 ms BUOPS [X.X.X.X]
> The 3 values I want tot put in a table when I run the script
$output = `tracert x.x.x.x`;
$output now contains the results of whatever command you executed. It's all
nicely explained in the manual, "Program Execution functions".
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
A comprehensive plan of inaction.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php