Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-24-2003, 03:59 AM   #1
Registered: Jul 2003
Location: Istanbul
Distribution: slack
Posts: 43

Rep: Reputation: 15
Angry 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
case $choice in
network) echo "eth0 is starting ...."
"ifconfig eth0 netmask &&
route add default gw" $a;;
if [ $a=0 ]
firewall) echo " Firewall is starting..."
/home/jazzy/afire start ;;
else exit1;

Old 10-24-2003, 07:01 AM   #2
Registered: Jun 2003
Location: Reading, UK
Distribution: Debian 3.0, LFS
Posts: 524

Rep: Reputation: 37
I don't know much about bash scripting, but don't you need a "fi" to end your if?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH: let output like 00004 and not 4 bglnelissen Programming 9 09-28-2005 09:24 AM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
BASH: Output everything between two strings systemparadox Programming 2 12-18-2004 10:26 AM
Bash: How to concatenate the output of different commands? J_Szucs Programming 1 11-13-2003 07:43 AM
Bash script: add all numbers from command output wi-Z-art Programming 2 08-06-2003 09:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration