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 \`
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using backticks to pass commands
by vinoth.ree (Monsignor) on Jan 22, 2013 at 12:20 UTC | |
|
Re: using backticks to pass commands
by Anonymous Monk on Jan 22, 2013 at 14:21 UTC | |
by zatarboy (Initiate) on Jan 22, 2013 at 14:25 UTC | |
by choroba (Cardinal) on Jan 22, 2013 at 15:05 UTC | |
by Anonymous Monk on Jan 22, 2013 at 15:08 UTC |