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:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1286126 errors:0 dropped:0 overruns:0 frame:0
TX packets:516928 errors:0 dropped:0 overruns:0 carrier:0
collisions:16 txqueuelen:100
RX bytes:377232323 (359.7 Mb) TX bytes:111611502 (106.4 Mb)
Interrupt:11 Base address:0xec80
ipsec0 Link encap:Ethernet HWaddr 00:C0:4F:AB:F9:59
inet addr:192.168.1.200 Mask:255.255.255.0
UP RUNNING NOARP MTU:16260 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:137252 errors:0 dropped:0 overruns:0 frame:0
TX packets:137252 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:35151736 (33.5 Mb) TX bytes:35151736 (33.5 Mb)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php