From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 17 18:24:55 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0EE6516A407 for ; Wed, 17 Jan 2007 18:24:55 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.234]) by mx1.freebsd.org (Postfix) with ESMTP id 9EDDF13C474 for ; Wed, 17 Jan 2007 18:24:54 +0000 (UTC) (envelope-from ramadas@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so2420067wxc for ; Wed, 17 Jan 2007 10:24:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=k9nNbGqU+SjT3ykdJ5XCP0IkyZ3oHN9G/uAr9R0PyA3Eyf+XHuBqPznbxlXt0rx74EbZKDRNyGvlCODZatmzB5z2miJnldrx1/vEuHOnAe8RxB01qtyGVCQb1UlueMeAskx9zgkBGgDW2yCA8QEcfRBeF2kt1LIt1O3tcfBZh1g= Received: by 10.90.104.14 with SMTP id b14mr6530163agc.1169058290421; Wed, 17 Jan 2007 10:24:50 -0800 (PST) Received: by 10.90.51.16 with HTTP; Wed, 17 Jan 2007 10:24:50 -0800 (PST) Message-ID: Date: Wed, 17 Jan 2007 10:24:50 -0800 From: "Kailas Ramasamy" Sender: ramadas@gmail.com To: "Mike Meyer" In-Reply-To: <17837.36471.343582.464631@bhuda.mired.org> MIME-Version: 1.0 References: <17837.25293.686122.147525@bhuda.mired.org> <17837.36471.343582.464631@bhuda.mired.org> X-Google-Sender-Auth: e9bd1db82be8f365 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-hackers@freebsd.org Subject: Re: Bridging console port to a telnet session X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 18:24:55 -0000 Hi Mike, I read through fork() and exec() man pages but I couldn't find anything related to this. Basically, I want to launch a telnet session from a process and pass in /dev/console as stdin and stdout. Thanks Kailas On 1/16/07, Mike Meyer wrote: > > In , Kailas > Ramasamy typed: > > Hi Mike, > > Yes, that what I am planing but I want to do this dynamically. Do you > know > > how to launch a > > telnet session from a process?. How do I pass stdin and stdout to the > telnet > > from a process?. > > See the fork() and exec() man pages. > > > > > On 1/16/07, Mike Meyer wrote: > > > > > > In , > Kailas > > > Ramasamy typed: > > > > Hi, > > > > Within a FreeBSD system, I want to telnet to another system and > bridge > > > that > > > > session to the > > > > console port so that when an user connects to the system via console > > > port, > > > > it is automatically > > > > redirected to other system for I have already established a telnet > > > session. > > > > > > What's wrong with simply leaving a telnet session running on the > > > console, maybe with some support to relaunch it should it ever exit? > > > > > > > > -- > > > Mike Meyer > > > http://www.mired.org/consulting.html > > > Independent Network/Unix/Perforce consultant, email for more > information. > > > > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to " > freebsd-hackers-unsubscribe@freebsd.org" > > > > -- > Mike Meyer > http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. >