Launching a telnet session from a process

Michael P. Soulier msoulier at digitaltorque.ca
Wed Jan 17 18:49:38 UTC 2007


On 1/17/07, Kailas Ramasamy <ramadas at 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 at 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


More information about the freebsd-questions mailing list