Re: Return values from shell_exec command into db

From: Date: Wed, 06 Mar 2002 10:59:22 +0000
Subject: Re: Return values from shell_exec command into db
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87447@lists.php.net to get a copy of this message
On Wednesday 06 March 2002 18:23, Sven Jacobs wrote: > Hey > > 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 /* strategy, n.: A comprehensive plan of inaction. */

« previous php.general (#87447) next »