From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 21:54:50 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A529016A47E for ; Wed, 17 Jan 2007 21:54:50 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id 4135113C4BF for ; Wed, 17 Jan 2007 21:54:49 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: by wr-out-0506.google.com with SMTP id 36so25wra for ; Wed, 17 Jan 2007 13:54:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=qUD77znyUujLWJACHmUzpM+U1uFBiOLq8r8L74dFx53pRdoAJUUxfR+ldyb+5fIQ8JTMaN/gYTPoydWrzdrmNKpCRFfcM+g1fTTINkUTfIaQPMp7J4izjI4cYJno7QycjrvYnTIXDasOdFnvPoJu9uoNqVz6OP3zUV74/0T/aSk= Received: by 10.90.113.20 with SMTP id l20mr13513agc.1169070833397; Wed, 17 Jan 2007 13:53:53 -0800 (PST) Received: by 10.90.51.16 with HTTP; Wed, 17 Jan 2007 13:53:53 -0800 (PST) Message-ID: Date: Wed, 17 Jan 2007 13:53:53 -0800 From: "Kailas Ramasamy" To: "Garrett Cooper" In-Reply-To: <2D69192B-8366-4827-8168-B47833DF1322@u.washington.edu> MIME-Version: 1.0 References: <2D69192B-8366-4827-8168-B47833DF1322@u.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Questions Subject: Re: Launching a telnet session from a process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 21:54:50 -0000 Hi Garret, Thanks for the info. -Kailas On 1/17/07, Garrett Cooper wrote: > > On Jan 17, 2007, at 10:49 AM, Michael P. Soulier wrote: > > > On 1/17/07, Kailas Ramasamy 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 > > "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: 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" >