Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2007 13:53:53 -0800
From:      "Kailas Ramasamy" <ramadas@gmail.com>
To:        "Garrett Cooper" <youshi10@u.washington.edu>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Launching a telnet session from a process
Message-ID:  <ecd0bee40701171353w62c3d83bh5c729e1c5e2336ea@mail.gmail.com>
In-Reply-To: <2D69192B-8366-4827-8168-B47833DF1322@u.washington.edu>
References:  <ecd0bee40701171021m3644396p50b4d2851c6a283f@mail.gmail.com> <fb6605670701171049m241cfe78xd517f929675b243e@mail.gmail.com> <2D69192B-8366-4827-8168-B47833DF1322@u.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Garret,
Thanks for the info.

-Kailas

On 1/17/07, Garrett Cooper <youshi10@u.washington.edu> wrote:
>
> On Jan 17, 2007, at 10:49 AM, Michael P. Soulier wrote:
>
> > On 1/17/07, Kailas Ramasamy <ramadas@gmail.com> wrote:
> >> Hi,
> >> How do I launch a telnet session from a process and tell that
> >> session to
> >> use console port (/dev/console) for stdin and stdout?. Appreciate
> >> your help.
> >>
> >> I read through fork() and exec() man pages but it is not mentioned
> >> there.
> >
> > Personally I'd use expect around the telnet, and then send the output
> > to any file desired.
> >
> > Mike
> > --
> > Michael P. Soulier <msoulier@digitaltorque.ca>
> > "Any intelligent fool can make things bigger and more complex... It
> > takes a
> > touch of genius - and a lot of courage to move in the opposite
> > direction."
> > --Albert Einstein
>
> What about "telnet < /dev/console &1> /dev/console"? See: <http://
> hemsidor.torget.se/users/d/Devlin/shell/sh7a.html#7.3>.
> -Garrett
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ecd0bee40701171353w62c3d83bh5c729e1c5e2336ea>