in reply to process redirection
Then, you can write this output to wherever you want it with something like this:$result = `command`;
open OUTFILE, "> /path/to/outfile.txt"; print OUTFILE $result; close OUTFILE;
Alternately, if you do not want to process the output in Perl, you can just do something like this:
However, in this case you probably wouldn't need to use Perl for it at all...system("command > /path/to/result.txt");
HTH
--------------------------------
An idea is not responsible for the people who believe in it...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: process redirection
by reasonablekeith (Deacon) on Jul 25, 2005 at 13:33 UTC |