parthodas has asked for the wisdom of the Perl Monks concerning the following question:
When I'm running the code without the reroute option, I'm able to see on screen message. But when I'm running the code with routing option, the message is getting lost. Neither it is displaying on screen nor it is getting captured in the file.open my $FILEOUT, '>>', "$mydir/summary_log.txt" or die "Can't create +'$mycrdir/summary_log.txt'" ; while ( my @row = $sth->fetchrow_array() ) { system("ss GET $row[2]\/$row[1] -V$row[4] -GL$mydir > $FILEOUT 2>& +1"); }
Also, is it possible to display the message on the screen and route it to the file. Cause, when I'm routing the message the on screen display of message is not showing. On screen message looks something like this --
Version not found
Getting XLNXlogin.css
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Capturing output of commands to a file
by GotToBTru (Prior) on Nov 12, 2015 at 21:29 UTC | |
by parthodas (Acolyte) on Nov 12, 2015 at 22:02 UTC | |
by Laurent_R (Canon) on Nov 12, 2015 at 22:35 UTC | |
|
Re: Capturing output of commands to a file
by dasgar (Priest) on Nov 12, 2015 at 22:47 UTC | |
|
Re: Capturing output of commands to a file
by choroba (Cardinal) on Nov 12, 2015 at 21:32 UTC | |
by parthodas (Acolyte) on Nov 12, 2015 at 22:00 UTC |