The stupid question is the question not asked | |
PerlMonks |
Re: process redirectionby bofh_of_oz (Hermit) |
on Jul 25, 2005 at 13:17 UTC ( [id://477803]=note: print w/replies, xml ) | Need Help?? |
system function only returns the exit status of the command; if you want to capture the output, you should use backticks:
Then, you can write this output to wherever you want it with something like this:
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... HTH
--------------------------------
In Section
Seekers of Perl Wisdom
|
|