From owner-freebsd-questions Tue Dec 4 4:29:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay1.ntu-kpi.kiev.ua (www.ntu-kpi.kiev.ua [212.111.192.161]) by hub.freebsd.org (Postfix) with ESMTP id D802B37B419 for ; Tue, 4 Dec 2001 04:29:36 -0800 (PST) Received: from comsys.ntu-kpi.kiev.ua (eth0.comsys.ntu-kpi.kiev.ua [10.0.1.184]) by relay1.ntu-kpi.kiev.ua (Postfix) with ESMTP id 10E0F2EF1E for ; Tue, 4 Dec 2001 14:29:29 +0200 (EET) Received: (from root@localhost) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) id fB4CVNA78400 for freebsd-questions@freebsd.org.CHECKED; Tue, 4 Dec 2001 14:31:23 +0200 (EET) Received: from pm5149 (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) by comsys.ntu-kpi.kiev.ua (8.11.6/8.11.6) with SMTP id fB4CVLV78392; Tue, 4 Dec 2001 14:31:22 +0200 (EET) Message-ID: <01b001c17cb6$52a7b820$6d36120a@comsys.ntukpi.kiev.ua> From: "Andrey Simonenko" To: "Gianmarco Giovannelli" Cc: References: <5.1.0.14.2.20011204065649.026c2008@194.184.65.4> Subject: Re: "dialog" command: a couple of questions. Date: Tue, 4 Dec 2001 14:25:04 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 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 ----- Original Message ----- From: Gianmarco Giovannelli Newsgroups: lucky.freebsd.questions Sent: Tuesday, December 04, 2001 9:30 AM Subject: "dialog" command: a couple of questions. > A couple of questions: > > 1) Is it a better way of read the result than, in example: > > #!/bin/sh > dialog --inputbox text 10 30 2> /tmp/input.dialog > if [ $? = 1 ]; then > clear > exit 0 > fi > ANS=`cat /tmp/input.dialog` > echo "You typed: $ANS"; > No, this only one way (easy way). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message