From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 18:49:37 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 DFFE716A412 for ; Wed, 17 Jan 2007 18:49:37 +0000 (UTC) (envelope-from msoulier@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 7236C13C480 for ; Wed, 17 Jan 2007 18:49:37 +0000 (UTC) (envelope-from msoulier@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so264795nfc for ; Wed, 17 Jan 2007 10:49:36 -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:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=aHAQmWSi6DUvbXL24HtqE0FqJpSB+rODZMltNIX3Haw6uFzx4N+6eu6YtAV7xW2UB2iBWjqW+jJWA0IJuZpVRlYjI6VYO+MjoAtG65VzoYg7BMxNOrGlrqYcVBc2nUaWan8kFg3Uv/3jkvcf3yjLJAHEnSws9MCLUdc69+7M2P0= Received: by 10.82.179.9 with SMTP id b9mr1608387buf.1169059775669; Wed, 17 Jan 2007 10:49:35 -0800 (PST) Received: by 10.82.170.18 with HTTP; Wed, 17 Jan 2007 10:49:35 -0800 (PST) Message-ID: Date: Wed, 17 Jan 2007 13:49:35 -0500 From: "Michael P. Soulier" Sender: msoulier@gmail.com To: "Kailas Ramasamy" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: aa5a3fc9425dc60c Cc: freebsd-questions@freebsd.org 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 18:49:38 -0000 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