← Back to team overview

sslug-teknik team mailing list archive

Rigtigt output i et PHP3 script

 

Hej!

Jeg har lavet flg. meget simple kommando i et PHP script:

echo `/sbin/ipchains -L -M`;

og jeg får outputtet sådan:

IP masquerading entries prot expire source destination ports UDP 03:40.67
192.168.254.67 fes-d005.icq.aol.com 1060 (61162) -> 4000 UDP 03:37.50
devotion.engbo.lan fes-d030.icq.aol.com 1258 (61098) -> 4000 TCP 05:47.97
devotion.engbo.lan dialin-108-044.mobilixnet.dk 1369 (61283) ->

hvor jeg egentlig gerne ville have det vist, som hvis jeg skrev det i
konsollen:

IP masquerading entries
prot expire   source               destination          ports
UDP  04:05.36 192.168.254.67       fes-d005.icq.aol.com 1060 (61162) -> 4000
TCP  04:02.63 devotion.engbo.lan   122.ppp1-3.odn.worldonline.dk 1262
(61103) -> 8018
UDP  04:25.35 devotion.engbo.lan   fes-d030.icq.aol.com 1258 (61098) -> 4000
TCP  03:11.82 192.168.254.67       dialin-108-044.mobilixnet.dk 1070
(61271) -> 14693
TCP  10:05.27 devotion.engbo.lan   dialin-108-044.mobilixnet.dk 1369
(61283) -> 14693

er det muligt?

Mvh
Morten




Follow ups