|
Hi Guys,
I have a command in php
$command = 'snmpwalk -c moo -v1 localhost IOD';
exec($command);
Ok,
This will output about 30 rows of data..
IE:
111
222
333
444
555
etc.
Do you know how to get this data into an array and then echo the array?
Ive tried
exec($command, $output = array());
But this doesnt work.
if i print_r($output);
I just get
Array
(
)
-G:wq
|