Hi all, i have a
perl script. from within the
perl script, i am calling a system command which i need to pass in a
perl variable. but the variable substitution does not seems to happen. would like to find out where is the missing escape character or extra quotes;or what is my mistake.
Code:
#!/usr/bin/perl -w
$community="public";
$result=system("snmpwalk -v 2c -c $community localhost system");