Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a requirement where i need to integrate shell command to perl. I am aware how to do it.
But, i need to run this shell cmd (which is snmp walk for 20 mibs repeatedly) at the beginning of the script and stop only after all other executions (say, testcases) are over
to be more precise, run this shell cmd at the background and stop when the script finishes its whole execution
.I was thinking 2 options. One is use a subroutine and add this shell cmd inside and call after each testcases. There is a problem with this. The shell will start and stop after each call, which i dont want
.Do you have any suggestions
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Integrating shell cmd to perl script
by Anonymous Monk on Mar 25, 2015 at 08:45 UTC | |
by Anonymous Monk on Mar 25, 2015 at 09:14 UTC | |
by Corion (Patriarch) on Mar 25, 2015 at 09:17 UTC | |
by Anonymous Monk on Mar 25, 2015 at 09:37 UTC | |
by Corion (Patriarch) on Mar 25, 2015 at 09:39 UTC | |
by anonymized user 468275 (Curate) on Mar 25, 2015 at 18:49 UTC | |
by Anonymous Monk on Mar 25, 2015 at 09:21 UTC | |
|
Re: Integrating shell cmd to perl script
by sandy105 (Scribe) on Mar 26, 2015 at 11:30 UTC |