From owner-freebsd-questions Thu May 31 12:20: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from anime.net (anime.net [63.172.78.150]) by hub.freebsd.org (Postfix) with ESMTP id A881737B424 for ; Thu, 31 May 2001 12:20:04 -0700 (PDT) (envelope-from eugene@anime.net) Received: (from eugene@localhost) by anime.net (8.9.3/8.9.3) id MAA24929 for freebsd-questions@FreeBSD.ORG; Thu, 31 May 2001 12:19:55 -0700 Date: Thu, 31 May 2001 12:19:55 -0700 From: Eugene Lee To: freebsd-questions@FreeBSD.ORG Subject: shell scripts, file descriptor, and pw Message-ID: <20010531121955.C23484@anime.net> Mail-Followup-To: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'm trying to write a shell script using 'pw' that uses the '-h fd' option to lets you securely send a password to the program via a file descriptor. I'm not sure how to create a file descriptor in /bin/sh that can be passed to 'pw'. Can anyone offer a few sample lines of how this should be done? Thanks in advance, and apologies if this is not the right list to ask. -- Eugene Lee eugene@anime.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message