标签:dialog
我用dialog写了个小脚本,没成功和成功后的我看着是一样的,求大神解答!!
用diff,它说有错 我为什么看不出来呢
[root@lcmc ~]# diff -u form1 form2
--- set-network.sh 2015-06-17 20:13:36.731459487 -0400
+++ form2 2015-06-17 19:53:57.107462118 -0400
@@ -13,13 +13,13 @@
value=`$DIALOG --ok-label "Submit" \
--form "Here is a possible piece of a configuration program." \
0 0 10 \
- "1 Device name:" 1 1 "$dev" 1 16 25 15 \
- "2 On boot:" 2 1 "$on_boot" 2 16 25 15 \
- "3 DHCP:" 3 1 "$boot_dhcp" 3 16 15 25 \
- "4 Ip address:" 4 1 "$ipaddr" 4 16 25 15 \
- "5 Netmask:" 5 1 "$netmask" 5 16 25 15 \
- "6 Broadcast:" 6 1 "$broadcask" 6 16 25 15 \
- "7 Gateway:" 7 1 "$gateway" 7 16 25 15 \
+ "1 Device name:" 1 1 "$dev" 1 16 25 15 \
+ "2 On boot:" 2 1 "$on_boot" 2 16 25 15 \
+ "3 DHCP:" 3 1 "$boot_dhcp" 3 16 25 15 \
+ "4 Ip address:" 4 1 "$ipaddr" 4 16 25 15 \
+ "5 Netmask:" 5 1 "$netmask" 5 16 25 15 \
+ "6 Broadcast:" 6 1 "$broadcast" 6 16 25 15 \
+ "7 Gateway:" 7 1 "$gateway" 7 16 25 15 \
2>&1 1>&3`
return=$?
exec 3>&-
标签:dialog
原文地址:http://jiaozi9811.blog.51cto.com/5562545/1663676