[LCP]interactive Telnet session
Chong Chee Yong
catz at silvermoon.com.sg
Thu Sep 5 23:16:05 UTC 2002
hmm .. sorry I've deleted your codes and don't have them for reference, I
think you've switched your source fd and destination fd during your calls
to dup2().
On Wed, 4 Sep 2002, Lucas King wrote:
> my current reference, in my continured effort in developing my
> programming skills, is Linux Programming Bible. it explains the use of
> DUP2 and for the most part DUP2 seems to behave as explained. my
> problem, as far as i can determine, is that Telnet requires access to
> the terminal's environment. but as i have redirected Telnet's output to
> a socket rather then stdout, the terminal environment is not available.
> i am taking an educated guess here. perhaps there is some way of
> passing the terminal information to Telnet on the command line?
--
The deeper the night, the nearer the dawn.
More information about the linuxCprogramming
mailing list