RE: [PHP] Parse exec output

2003-03-01 Thread Rich Gray
> > If I exec a command like ifconfig, I'd like to be able to parse. What is > the best way to go about thihs? An example output from ifconfig is: Check http://www.php.net/manual/en/function.passthru.php Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Parse exec output

2003-02-28 Thread Gregory Chagnon
If I exec a command like ifconfig, I'd like to be able to parse. What is the best way to go about thihs? An example output from ifconfig is: [EMAIL PROTECTED]:/var/log> ifconfig eth0 Link encap:Ethernet HWaddr 00:C0:4F:AB:F9:59 inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:2