Checkfs script Programming Software Development by sammiepooh …quot;df -k" DU="du -k" ;; esac;; *) echo >&2 "unknown operating system, … not exclude this substring (i.e. "/") continue;; esac ExcludeList="${ExcludeList:+$ExcludeList|}$dir" done : ${ExcludeList:="THIS… Help With Case Nesting(Restaurant Ordering Simulator) Programming Software Development by frankycool …quot; read -p "Press [Enter] key to continue..." ;; esac 3) clear echo "-------------------------------" echo " Superman Restaurant"… help translate this bash script into c code Programming Software Development by hookah …;; *) # default. echo illegal choice # error. ;; esac done #!/bin/sh #Project1 add submenu echo -n "…menu ;; *) # default. echo illegal choice # error. ;; esac done #! /bin/sh # menu test program stop=0 # … please take a look at my question Programming Software Development by k2k …=TRUE;; \?) echo "Usage: mywhich [-a] command" exit 1;; esac done if [ "$OPTIND" -gt "$#" ] then echo…=TRUE;; \?) echo "Usage: mywhich [-a] command" exit 1;; esac done if [ "$OPTIND" -gt "$#" ] then echo… load balancer with direct routing Hardware and Software Linux and Unix by williebens … ;; *) echo "Usage: $0 (start|stop|restart)" exit 1 esac Next is the script to set up real server1: #!/bin… ;; *) echo "Usage: $0 (start | stop | restart)" exit 1 esac On the LVS: Interface configurations: eth0 192.168.2.3… my scripts Hardware and Software Linux and Unix by lewashby …: sed & unset - at the top case & esac and the threee cat & EOF commands, thanks. Code is…+= -march=i486 -mtune=native -O3 -pipe" > configparms ;; esac && ( ../glibc-2.14.1/configure --prefix=/usr \ --disable… Condition in Case Statement Programming Software Development by prakash2813 Hi..Everyone... you know case statement very well... case $var in op1)... op2)... esac The problem is ,,, how can i specify the less than , greater than condition in case statement???????? case $var in -gt 100).... esac ..is not working... Re: Urgent hep is required Programming Software Development by eggi … (the end of your getopts): [CODE]*) echo $Usage return $ERR ;; esac done[/CODE] add your sanity check (updated to look like… this): [CODE]*) echo $Usage return $ERR ;; esac done if [[ $lFlag -eq 1 ]]; then echo "Either option… Re: Uix Script Help Need Programming Software Development by deven1974 … ;; exit) exit *) # code for error esac else cd $choice fi fi f_print_msg() done }[/… code for exit *) # code for error esac else cd $choice fi fi [/CODE] But… 2 bash shell scripts with kill-trap Programming Computer Science by basak …; ]; do case $1 in -s ) shift calledprg=$1 ;; * ) exit 1 esac shift done if [ "$calledprg" != "" ];then pkill… python Programming Software Development by jan1024188 … fi fi;; * ) echo please select valid number you idiot ; press_enter ;; esac done [/CODE] Shell program, help required. Programming Software Development by number1029 …" >> $log date >> $log keeploop=0 ;; esac done Ok, so far i managed to get to this… Starting, Stopping, Updating Shell Script Programming Software Development by psmawson … Stopped! ;; *) echo "Usage: hlds {start|stop}" exit 1 ;; esac exit 0[/CODE] Help needed in this script Programming Software Development by larryperl … Llcron=L ;; d) DEBUGGING='/bin/echo' ;; *) echo $Usgae return 1 ;; esac done (( optcount = OPTIND - 1 )) shift $optcount if [[ -z "$1… cronjob problem in the script Programming Software Development by larryperl …='/bin/echo' ;; d) DEBUGGING='/bin/echo' ;; *) echo $Usgae return 1 ;; esac done (( optcount = OPTIND - 1 )) shift $optcount if [[ -z "$1… Urgent hep is required Programming Software Development by larryperl … format" return $ERR fi fi ;; *) echo $Usage return $ERR ;; esac done if [[ ! -w $BackupLocation ]]; then echo "$BackupLocation is not… Re: Urgent hep is required Programming Software Development by larryperl …;$OPTARG" LFlag=0 [/code] ----------------------------------------------- [code] *) echo $Usage return $ERR ;; esac done if [[ $lFlag -eq 1 || $LFlag -eq 1 ]]; then echo… Command Menu Shell Script Help Programming Software Development by dlnunez99 … ;; 9) exit ;; *) echo "There is no selection:$answer" ;; esac Re: Command Menu Shell Script Help Programming Software Development by Aia Missing [COLOR="Red"]"[/COLOR] before $exit until [ "$answer" = [COLOR="Red"]"[/COLOR]$exit"] ; do . . . esac [COLOR="Red"]done[/COLOR] Re: Command Menu Shell Script Help Programming Software Development by dlnunez99 … ;; 9) exit ;; *) echo "There is no selection:$answer" ;; esac done uniq not working? Programming Software Development by k2k … $P|$P:*|*:$P:*|*:$P) continue;; *) NP="$NP:$P";; esac done second=`echo $NP | tr ':' ' ' | uniq -d ` echo $second[/CODE… Re: uniq not working? Programming Software Development by k2k … $next|$next:*|*:$next:*|*:$next) continue;; *) result="$result:$next";; esac done ### at this point,, all the args are concatanated second… Colors in bash Programming Software Development by krammer …"**You have disconnected from the sprint network!"$COL_RESET ;; esac[/CODE] Here are the errors: [CODE]root@mybox:~/Scripts# ./sprint… Re: Colors in bash Programming Software Development by krammer …**You have disconnected from the sprint network!" ; tput sgr0 ;; esac[/CODE] helps with getopts Programming Software Development by picass0 …; in PS) echo "hello" ;; \?) echo "wrong!!" esac else echo "Required 3 Args!!!" fi done[/CODE] Re: helps with getopts Programming Software Development by picass0 … ;; s) sed -n '$p' /etc/shadow ;; \?) echo "wrong!!" esac else echo "Required 3 Args!!!" fi done [/CODE] Re: helps with getopts Programming Software Development by picass0 …) sed -n '$p' /etc/shadow; ;; \?) echo "Wrong Arguments!!!" esac done [/CODE] Re: helps with getopts Programming Software Development by eggi … ;; s) sed -n '$p' /etc/shadow ;; \?) echo "wrong!!" esac else echo "Required 3 Args!!!" fi done[/CODE… Shell Scripting Problem Programming Software Development by a.kris …";; w) weight ="$OPTARG";; d) isdef = 1;; \?) help_ani;; esac done if[ $isdef -eq 0];then` echo "Animal Name… Script with User inputting file name.. Programming Software Development by Gresakl … $1 exit;; *) echo "Please enter a valid choice." esac [/CODE]