The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Looping and using Sed digobh Shell Programming and Scripting 4 02-04-2008 04:25 PM
looping search question alfredo123 Shell Programming and Scripting 3 11-15-2006 11:39 PM
Looping question hemangjani Shell Programming and Scripting 2 02-24-2006 08:47 AM
Perl question - looping through an array of hashrefs kregh99 Shell Programming and Scripting 2 03-19-2004 06:48 AM
nested looping question Sn33R Shell Programming and Scripting 7 09-26-2003 11:14 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-11-2002
Registered User
 

Join Date: Jun 2001
Posts: 35
Question looping question

I am writing a simple script and want to keep the user in a fuction until they are ready to get out. For some (probably stupid) reason, it doesn't seem to be working. You guys see anything that I'm overlooking?

crsd()

{until [ $QUIT = 'N' ]
do
/home/wcs3611.crsdtmp.sh
echo 'run another? \c'
read $QUIT
done
return 0
} #crsd ()
Forum Sponsor
  #2 (permalink)  
Old 03-11-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,454
Try "read QUIT" rather than "read $QUIT".
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0