-
Senior Member
registered user
anticuchos,
Just figured out the unconditional, or, "infinite" loop, for your script:
Code:
#!/bin/bash
while true
do
echo -n "
How are you feeling?
Tired
Bored
Hungry
Enter: " #Type how you feel
read OPTION
case $OPTION in
tired)
#if $option 'Tire'; then
echo "You should get some rest."
;;
bored)
#if $option 'Bored'; then
echo "Play a game of Frozen Bubble."
;;
hungry)
#If $option 'Hungry'; then
echo "Order pizza!"
;;
*)
echo "Invalid entry: $OPTION!"
;;
esac
done
Note, that, this script HAS TO BE control-C 'ed out of, or it will NEVER end...
You can always add a condition into the "case" block, like, "exit" - to allow it to exit easier...
Case closed, so to speak 
Ms. Cuddles
Similar Threads
-
By sibtay in forum Customising & Remastering
Replies: 4
Last Post: 10-25-2004, 11:08 AM
-
By dehahn in forum General Support
Replies: 4
Last Post: 10-16-2004, 01:31 AM
-
By Salzi in forum General Support
Replies: 1
Last Post: 09-09-2004, 02:56 AM
-
By Guitarplaya512 in forum General Support
Replies: 5
Last Post: 03-14-2004, 11:03 AM
-
By michaelmontagne in forum General Support
Replies: 1
Last Post: 09-04-2003, 09:17 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell PowerEdge VRTX 2.5"x25 Bay Blade Enclosure 4x1600W + 4X M640 (4X Blades)
$1599.99

NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 4 NODE SERVER
$1499.97

Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 256GB DDR3 RAM NO HDD
$349.99

Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR
$96.60

Datto S4P10 1U Blade Rack Server Intel Xeon D-2143IT 2.20GHz 48GB DDR4 4-Bay PSU
$197.76

Dell Poweredge C6400 24x 2.5’’ 2x 2400W 4x C6420 Nodes H330 | 2x SFP | 8x Trays
$799.99

Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working
$149.99

Supermicro 938-16 16-LFF MicroCloud SuperServer 5038MR-H8TRF *No Blade Servers*
$159.99

Dell Poweredge VRTX 25Bay 2.5" 2x PERC 8, 2xCMC, I/O 1GB Pass Through, 4x PS
$578.08

Cisco UCS 5108 Blade Server Chassis Enclosure N20-C6508 4x PSU 8x Fans 2x Fabric
$174.99