From owner-freebsd-questions@FreeBSD.ORG Thu Mar 25 16:41:34 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A4D71065672 for ; Thu, 25 Mar 2010 16:41:34 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id C0EB68FC0C for ; Thu, 25 Mar 2010 16:41:33 +0000 (UTC) Received: from r55.edvax.de (port-92-195-100-7.dynamic.qsc.de [92.195.100.7]) by mx02.qsc.de (Postfix) with ESMTP id 21E081E761; Thu, 25 Mar 2010 17:41:31 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o2PGfVdF002146; Thu, 25 Mar 2010 17:41:31 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 25 Mar 2010 17:41:30 +0100 From: Polytropon To: Eitan Adler Message-Id: <20100325174130.fd9be132.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: creating a socket for use with nc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2010 16:41:34 -0000 On Thu, 25 Mar 2010 18:29:56 +0200, Eitan Adler wrote: > I have a program which reads from stdin. I'd like to be able to close > the terminal it is running in and interact with it via nc -U. > How can I create a socket which I attach to the stdin of the program? I think what you want - I'm not sure I understood you corretly - is a combination of a named pipe created by the mkfifo program, and the detach program from the ports collection. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...