|
|
| Just another Perl shrine | |
| PerlMonks |
using backticks to pass commandsby zatarboy (Initiate) |
| on Jan 22, 2013 at 11:52 UTC ( #1014640=perlquestion: print w/ replies, xml ) | Need Help?? |
|
zatarboy has asked for the
wisdom of the Perl Monks concerning the following question:
Hi Monks, I would like to pass the string below to shell using backticks and have tried using escape characters in a number of different combinations, but nothing seems to work. I have no problems passing simple commands like ls so I'm guessing I need escape characters in the right place. Your help would be very much appreciated. Thanks my $snmp_trap = `/usr/bin/snmptrap -v 2c -c public 127.0.0.1 '' .3.5.6.1.4.7.34566.12343.897.0.2 \`
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||