|

楼主 |
发表于 2003-6-3 14:48:27
|
显示全部楼层
用xdialog可以实现,dialog是基于字符的,感觉没有xdialog好用,如:
xdialog --no-cancel --2inputsbox "information" 15 30 "username:" "">t "password:" "">s
u=$(cat t)
p=$(cat s)
if [[ $u != $USER && $p != 123 ]]
then
xdialog --infobox "Wrong!!!" 8 20
fi
这样就可以在同一个窗口有两个输入条拉~~ |
|