http://www.perlmonks.org?node_id=1004736


in reply to Perl and Selenium Grid 2 - Redirecting STDOUT not working how I need it to.

open ... or die "Failed to write ...: $!\n";

Including $! will give you a big hint about why 'open' is failing. Replacing "..." with the path you gave to 'open' (by storing it in a variable first) will likely also be useful.

- tye        

  • Comment on Re: Perl and Selenium Grid 2 - Redirecting STDOUT not working how I need it to. (or die)
  • Download Code

Replies are listed 'Best First'.
Re^2: Perl and Selenium Grid 2 - Redirecting STDOUT not working how I need it to. (or die)
by Doozer (Scribe) on Nov 20, 2012 at 15:38 UTC
    Thank you for the response. I added the code you suggested and didn't get any errors. The 'print' command gets written to each file but the results of the following Selenium tests do not which suggests they are output by something other than STDOUT ?

      The most likely "something other than STDOUT" would be STDERR. So redirect that. Or read the documentation (or code) of tools that aren't writing to STDOUT?

      - tye