Hi,<br><br>I am redirecting STDOUT to a file in order to store the output of a system command, unfortunately I want it back and am having trouble getting it redirected back to /dev/tty:<br><br><pre><tt><span style="">&nbsp;</span>open(STDOUT, "&gt;/tmp/dkimkey.pem");<o:p></o:p></tt></pre><pre><tt><span style="">&nbsp;&nbsp;&nbsp; </span>my @args=("/usr/bin/openssl", "x509", "-inform", "pem", "-in",<o:p></o:p></tt></pre><pre><tt><span style="">&nbsp;&nbsp;&nbsp; </span>"/tmp/09.pem", "-pubkey", "-noout");<o:p></o:p></tt></pre><pre><tt><span style="">&nbsp;&nbsp;&nbsp; </span>system(@args)==0 or die "system @args failed: $?";<span style="">&nbsp; </span><o:p></o:p></tt></pre><pre><tt><span style="">&nbsp;&nbsp;&nbsp;&nbsp;</span>close (STDOUT);<o:p></o:p></tt></pre><pre><tt><span style="">&nbsp;&nbsp;&nbsp; </span>open<span style="">&nbsp; </span>(STDOUT, “&gt;/dev/tty”);<br><br><br><br>I have also tried "/dev/tty" in the second open without <br>redirection. Neither
 works<br><o:p></o:p></tt></pre><pre><tt><o:p>Pretty clearly I'm missing something.<br><br>Any help available would be much appreciated.<br><br>                             Ray, <br></o:p></tt></pre><br><br><br><p>&#32;

<hr size=1><a href="http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/">Never miss an email again!<br>Yahoo! Toolbar</a> alerts you the instant new Mail arrives.<a href="
http://us.rd.yahoo.com/evt=49937/*http://tools.search.yahoo.com/toolbar/features/mail/"> Check it out.</a>