Hi all
I have script that I need to write using data embedded in the application. Part of this data contains the string */. The * could represent several hundred entries that change on a daily basis.
Here is what I have (The array is longer than just the 1 element)
The real command looks like this:my @testqueue = (10.10.10.10); &pause; sub pause { my $pback = "/usr/sbin/cmd"; my $set = "pause queue"; while (@testqueue){ my $out = `$pback $set */$testqueue[0]`; print "$out"; shift @testqueue; } }
$cmd pause queue */10.10.10.10
Thanks for your help!
xjIn reply to Using */ with backticks in perl by xjlittle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |