As you can see, I want to return the result of an snmp walk, IN A VARIABLE. It obviously returns the results instantly, but I need it in a var, so I can work with it.$run="snmpwalk $host $opt_c ifType.".$thisport; $type=system($run); print "$MAC $type $ifName $vlan $host\n";
Edit kudra, 2001-09-18 Added code tags
In reply to System() or the like by PyroX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |