jcoaps has asked for the wisdom of the Perl Monks concerning the following question:
how can I prevent the STDOUT of a program my script is running? I thought I could do this by running it as a background process, but whatever I was doing failed me. Maybe I was doing it wrong, because I am fairly new to Perl.
The script is initiated from the command line, and the program I am running is Nmap (I am port scanning and parsing the results in a way nontechnical clients can understand). I would like to replace the STDOUT results that Nmap presents the user with my own results, or a status message (i.e "test 1 complete - XX devices discovered running SMTP")
The script is initiated from the command line, and the program I am running is Nmap (I am port scanning and parsing the results in a way nontechnical clients can understand). I would like to replace the STDOUT results that Nmap presents the user with my own results, or a status message (i.e "test 1 complete - XX devices discovered running SMTP")
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Suppress STDOUT of a called program
by Joost (Canon) on May 16, 2007 at 21:49 UTC | |
by jcoaps (Initiate) on May 16, 2007 at 23:01 UTC | |
by chromatic (Archbishop) on May 17, 2007 at 03:04 UTC | |
Re: Suppress STDOUT of a called program
by johngg (Canon) on May 16, 2007 at 21:56 UTC |
Back to
Seekers of Perl Wisdom