Date: Tue, 04 Dec 2001 07:27:00 +0100 From: Gianmarco Giovannelli <gmarco@giovannelli.it> To: questions@freebsd.org Subject: "dialog" command: a couple of questions. Message-ID: <5.1.0.14.2.20011204065649.026c2008@194.184.65.4>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.2.20011204065649.026c2008>
