P is for Practical | |
PerlMonks |
Command execution through pipe from Open functionby msk_0984 (Friar) |
on Apr 29, 2008 at 11:29 UTC ( [id://683443]=perlquestion: print w/replies, xml ) | Need Help?? |
msk_0984 has asked for the wisdom of the Perl Monks concerning the following question:
Respected Monks, I am trying to execute few commands by using the pipe from open function and pushing the required information into files and reading the same data. The first command after execution opens a new command prompt , for which we provide a password for authentication and then give the required command "subagent list" to get some health information and quit the command prompt. Its gives the perfect output when the password specified to it is correct. All the information is pushed into the files.
But when we execute the same commands on the command prompt by giving an incorrect password, it retries for three times and prints a message And the main concern is that in case of incorrect password scenario, the above process is running continously and also consuming excess CPU usage. Any suggestion regarding the above would be of great help. Thanks in Advance.
Sushil Kumar
Back to
Seekers of Perl Wisdom
|
|