Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 244 results for
esac
- Page 1
Checkfs script
Programming
Software Development
13 Years Ago
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
14 Years Ago
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
14 Years Ago
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
15 Years Ago
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
13 Years Ago
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
11 Years Ago
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
11 Years Ago
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
16 Years Ago
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
14 Years Ago
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
17 Years Ago
by basak
…; ]; do case $1 in -s ) shift calledprg=$1 ;; * ) exit 1
esac
shift done if [ "$calledprg" != "" ];then pkill…
python
Programming
Software Development
17 Years Ago
by jan1024188
… fi fi;; * ) echo please select valid number you idiot ; press_enter ;;
esac
done [/CODE]
Shell program, help required.
Programming
Software Development
16 Years Ago
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
16 Years Ago
by psmawson
… Stopped! ;; *) echo "Usage: hlds {start|stop}" exit 1 ;;
esac
exit 0[/CODE]
Help needed in this script
Programming
Software Development
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
15 Years Ago
by dlnunez99
… ;; 9) exit ;; *) echo "There is no selection:$answer" ;;
esac
Re: Command Menu Shell Script Help
Programming
Software Development
15 Years Ago
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
15 Years Ago
by dlnunez99
… ;; 9) exit ;; *) echo "There is no selection:$answer" ;;
esac
done
uniq not working?
Programming
Software Development
15 Years Ago
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
15 Years Ago
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
15 Years Ago
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
15 Years Ago
by krammer
…**You have disconnected from the sprint network!" ; tput sgr0 ;;
esac
[/CODE]
helps with getopts
Programming
Software Development
15 Years Ago
by picass0
…; in PS) echo "hello" ;; \?) echo "wrong!!"
esac
else echo "Required 3 Args!!!" fi done[/CODE]
Re: helps with getopts
Programming
Software Development
15 Years Ago
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
15 Years Ago
by picass0
…) sed -n '$p' /etc/shadow; ;; \?) echo "Wrong Arguments!!!"
esac
done [/CODE]
Re: helps with getopts
Programming
Software Development
15 Years Ago
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
15 Years Ago
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
15 Years Ago
by Gresakl
… $1 exit;; *) echo "Please enter a valid choice."
esac
[/CODE]
1
2
3
5
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC