From owner-freebsd-questions Mon Dec 3 22:29:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from kirk.giovannelli.it (kirk.giovannelli.it [194.184.65.4]) by hub.freebsd.org (Postfix) with ESMTP id DF8E537B405 for ; Mon, 3 Dec 2001 22:29:42 -0800 (PST) Received: from usul.masternet.it (modem02.masternet.it [194.184.65.197]) by kirk.giovannelli.it (8.11.6/8.11.6) with ESMTP id fB46KPb22487 for ; Tue, 4 Dec 2001 07:20:25 +0100 (CET) (envelope-from gmarco@giovannelli.it) Message-Id: <5.1.0.14.2.20011204065649.026c2008@194.184.65.4> X-Sender: gmarco@194.184.65.4 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 04 Dec 2001 07:27:00 +0100 To: questions@freebsd.org From: Gianmarco Giovannelli Subject: "dialog" command: a couple of questions. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 Hi, I am trying to use the "dialog" command from a shell script. 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"; 2) Is possible to play with the variables, usually find in .dialogrc, during the script itself, in example, changing the color of the background or using shadow or not (Linux version has the switch --noshadow for example) Thanks to everyone. Best Regards, Gianmarco Giovannelli , "Unix expert since yesterday" http://www.gufi.org/~gmarco To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message