i get the output on the screen but not in the variable Can anyone help me with this.... Thanks$cmd ="snmpset -v3 -a MD5 -A auth_Key_1492514201 -x DES -X encr_Key_10 +0265 -u myUser252094357 -l authPriv 172.16.232.53:8500 1.3.6.1.4.1.89 +62.2.1.2.1.10.7.1.20.2 i 2"; $x= system "$cmd"; or $x =`$cmd`;
In reply to getting the output of command in variable by phemal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |