in reply to System() or the like

Thanks guys,
It looks like this will work the best for me, thank you everyone.
$run="snmpwalk $host $opt_c ifType.".$thisport; open(PIPE,"$run |") || die "Failed to get type, stopped."; while(<PIPE>) { $type=$_; } close(PIPE); print "$MAC $type $ifName $iftomodule{$ifIndex} $iftopor +t{$ifIndex} $ifIndex $bridgeport $vlan $host\n";

Edit kudra, 2001-09-19 Added code tags

Replies are listed 'Best First'.
DONE: System() or the like Thanks!
by Anonymous Monk on Jul 02, 2002 at 02:53 UTC
    Thank you soooooo much this help a ton! $run="dir.".$thisport; open(PIPE,"$run |") || die "Failed to get type, stopped."; while(<PIPE>) { $type=$_; print($type); } close(PIPE);