in reply to
Redirecting STDOUT and standard error to file
How can I capture STDERR from an external command?
may help.
Comment on
Re: Redirecting STDOUT and standard error to file
In Section
Seekers of Perl Wisdom