[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-date: Wed May 12 01:42:47 2004 -->
- <!--x-from-r13: psbjyre ng bhgcbfgfragvary.pbz (Quevfgbcure Tbjyre) -->
- <!--x-message-id: [email protected] -->
- <!--x-subject: [ale] Redirecting STDOUT in perl to a socket -->
- <li><em>date</em>: Wed May 12 01:42:47 2004</li>
- <li><em>from</em>: cfowler at outpostsentinel.com (Christopher Fowler)</li>
- <li><em>subject</em>: [ale] Redirecting STDOUT in perl to a socket</li>
I'm trying to redirect 0,1,2 with the following code:
*STDIN = $client;
*STDOUT = $client;
*STDERR = *STDOUT;
If I stay in the perl program all output goes to the socket.
The minute I do exec() the output goes to the TTY. What is the correct
way to redirect those so they follow during an exec()?
Thanks,
Chris
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00452" href="msg00452.html">[ale] Redirecting STDOUT in perl to a socket</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
<li><strong><a name="00469" href="msg00469.html">[ale] Redirecting STDOUT in perl to a socket</a></strong>
<ul><li><em>From:</em> fletch at phydeaux.org (Fletch)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00447.html">[ale] real geeks don't use a GUI to order pizzas!!</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00449.html">[ale] [Fwd: Re: [Discuss] Xandros 2.0 users]</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00446.html">[ale] IP tunnel</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00452.html">[ale] Redirecting STDOUT in perl to a socket</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00448"><strong>Date</strong></a></li>
<li><a href="threads.html#00448"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>