LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Command output conrolling in bash (https://www.linuxquestions.org/questions/linux-software-2/command-output-conrolling-in-bash-107920/)

pazvant 10-24-2003 04:59 AM

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

guygriffiths 10-24-2003 08:01 AM

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 09:19 AM.