Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: RE: RE: Intermixing STDOUT and STDERR to a file

by merlyn (Sage)
on Sep 29, 2000 at 22:17 UTC ( [id://34662]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: Intermixing STDOUT and STDERR to a file
in thread Intermixing STDOUT and STDERR to a file

open STDERR, ">&STDOUT"; # Open STDERR open STDOUT, ">o.txt";
You've done the operations in the reverse order. Your stderr now goes where stdout used to go, and stdout is now going into the file. If you want them to go to the same place, reverse the operations.

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-18 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found