in reply to Capturing output of commands to a file
$FILEOUT contains the file handle, not the name, so redirecting to it in your command line will not work. File handles are only usable by perl commands. Perhaps:
while ( my @row = $sth->fetchrow_array() ) { system("ss GET $row[2]\/$row[1] -V$row[4] -GL$mydir > $mydir/summ +ary_log.txt 2>&1"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Capturing output of commands to a file
by parthodas (Acolyte) on Nov 12, 2015 at 22:02 UTC | |
by Laurent_R (Canon) on Nov 12, 2015 at 22:35 UTC |