Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by tye (Cardinal)
on Nov 20, 2012 at 15:30 UTC ( #1004736=note: print w/ replies, xml ) Need Help??


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
Re^2: Perl and Selenium Grid 2 - Redirecting STDOUT not working how I need it to. (or die)
by Doozer (Beadle) 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        

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-09-19 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls