From owner-freebsd-questions@FreeBSD.ORG Thu Mar 25 16:30:18 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 421C7106566B for ; Thu, 25 Mar 2010 16:30:18 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id CF5848FC22 for ; Thu, 25 Mar 2010 16:30:17 +0000 (UTC) Received: by fxm24 with SMTP id 24so3291730fxm.3 for ; Thu, 25 Mar 2010 09:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=3SXKHIHf8Ldk7ROxpVhbROH2Ze9jNxonB3WFtXKWJwo=; b=ZU5cMrgX1LVri9BXjWC7YiZhg0gaq0nULiAQExiAlYBkFJLmxKGwc9oXzMeCxoiHwx EzGx+jAE5nmD3WHOHABAcmk3LdG7ZZ0hpqDa1le5PduElJUeNGTWe1hzMhDk1aMNyHOw L9g5+5pDQbwhCHdPnj3nuX3AhAHxNtbgtDTQo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=DRLc2XzzmRTShg0oIAPLj+RfBNqX6aPsFToDbOzpW48o36e1pNH+rEiiWpeAv68XRf JFE4/Bx2g+HaLdvpkYXRGeF8Il0WHOs/rH3oq/0RbtR5fAt942T5D7KRfwvAqqr5r2ZF GAI445I3YXV3nBic8Ru/zbkZQ7ITjBX7uydqw= MIME-Version: 1.0 Received: by 10.239.182.5 with SMTP id o5mr435512hbg.160.1269534616567; Thu, 25 Mar 2010 09:30:16 -0700 (PDT) From: Eitan Adler Date: Thu, 25 Mar 2010 18:29:56 +0200 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: creating a socket for use with nc 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: Thu, 25 Mar 2010 16:30:18 -0000 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?