The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
while loop problems amatuer_lee_3 Shell Programming and Scripting 7 05-12-2008 09:48 PM
while loop inside while loop panknil Shell Programming and Scripting 0 01-07-2008 09:49 AM
Problems with an if/then loop within a script lodey Shell Programming and Scripting 3 09-17-2007 11:45 PM
how to get the similar function in while loop or for loop trynew Shell Programming and Scripting 3 06-17-2002 08:09 AM
'make' problems (compliation problems?) xyyz UNIX for Advanced & Expert Users 5 11-05-2001 07:47 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-20-2006
Registered User
 

Join Date: Jun 2006
Posts: 24
While loop problems

Here it wont terminate unless i take the not of my statement

#!/bin/bash
grabXML
parseXML
TAIL=5
#"$(cat dailyCasLog | tail -n 1)"
COUNT=200
LINE=5
#"$(cat dailyCasLog | head -n $COUNT | tail -n 1)"
echo $TAIL
echo $LINE
while ($LINE!=)
do
#$LINE">>currentLine

folderMaker

#moveBackup
#ftp -v -n "$LINE"
#user "" ""
#cd PATH to backup
#get the files
#bye
COUNT=$(expr $COUNT + 1)
echo $COUNT

echo $LINE y
echo $TAIL y
LINE="$(cat dailyCasLog|head -n $COUNT | tail -n 1)"
done
exit 0

itll just continue to loop forever
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 11:57 PM.


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 Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0