I'm in the process of writing a test tool in Perl for a product we're developing. I've re-directed the Perl STDERR to a logfile, which is logging Perl errors as expected. However, the application I'm testing writes some error messages to the console (STDOUT). I need to capture any application errors in a file (which I've partially done), because the test tool is designed to run overnight. I've done this by redirecting STDOUT to the log file. The trouble is, once I've re-directed STDOUT to the file, I'm unable to redirect it back to the console as it was before, to avoid sending everything to the log file.
Has anyone got any suggestions on how I could achieve this?
Regards,
Dan.
Has anyone got any suggestions on how I could achieve this?
Regards,
Dan.