CC Em has asked for the wisdom of the Perl Monks concerning the following question:
I have also tried:my $logFile = IO::File->new("$someFile", 'w'); my $cmd = $rsh $host -l $id \"$command >> $logFile\" ";
Can someone show me then the proper way to append output in this manner? Thanks!my $cmd = $rsh $host -l $id \"$command\" >> $logFile";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Piping output into a log file
by Tanktalus (Canon) on Apr 11, 2005 at 16:54 UTC | |
|
Re: Piping output into a log file
by gam3 (Curate) on Apr 11, 2005 at 16:40 UTC | |
|
Re: Piping output into a log file
by Zaxo (Archbishop) on Apr 11, 2005 at 16:41 UTC | |
|
Re: Piping output into a log file
by Roy Johnson (Monsignor) on Apr 11, 2005 at 16:46 UTC | |
|
Re: Piping output into a log file
by JediWizard (Deacon) on Apr 11, 2005 at 16:47 UTC | |
|
Re: Piping output into a log file
by NateTut (Deacon) on Apr 11, 2005 at 19:49 UTC |