Command output conrolling in bash
In my script i want to control command output with if loop in case loop..Bu ti did not manage
to control İf loop gives error.Can any one help me for command output control thankss... PS3="Welcome connection" select choice in network firewall do case $choice in network) echo "eth0 is starting ...." "ifconfig eth0 81.21.163.35 netmask 255.255.255.248 && route add default gw 81.21.163.33" $a;; if [ $a=0 ] then firewall) echo " Firewall is starting..." /home/jazzy/afire start ;; esac else exit1; done |
I don't know much about bash scripting, but don't you need a "fi" to end your if?
|
All times are GMT -5. The time now is 02:32 PM. |