From owner-freebsd-questions Sat Sep 28 13:56:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5083837B401 for ; Sat, 28 Sep 2002 13:56:33 -0700 (PDT) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0855F43E75 for ; Sat, 28 Sep 2002 13:56:29 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.5/8.12.5) with ESMTP id g8SKuSmC097544 for ; Sat, 28 Sep 2002 22:56:28 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.5/8.12.5/Submit) id g8SKuRWw097543; Sat, 28 Sep 2002 22:56:27 +0200 (CEST) Date: Sat, 28 Sep 2002 22:56:27 +0200 (CEST) Message-Id: <200209282056.g8SKuRWw097543@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Reply-To: freebsd-questions@FreeBSD.ORG Subject: Re: Bourne shell redirection of STDOUT In-Reply-To: <5.1.0.14.0.20020928170713.00bcc758@mail.lusidor.nu> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.6-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 Jimmy Lantz wrote: > Does anyone have an alternative to this? I would like to be able to run > this script read-only : > #!/bin/sh > DIALOG=${DIALOG=/usr/bin/dialog} > dialog --inputbox "Hitme" 8 40 \ > 2> /tmp/tempfile > myvar=`cat /tmp/tempfile` Nice example of abuse of cat. :-) #!/bin/sh - DIALOG=${DIALOG=/usr/bin/dialog} myvar=$($DIALOG --inputbox "Hitme" 8 40 2>&1 >$(tty)) Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message