The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




Thread: Scripting help
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-14-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
It looks like you might be hitting problems with some of your variables not getting set correctly. To debug, try adding an echo line for each variable just before you go to use it to check everything is as it should be.

Also, check that you are using the right comparison operator, I'm pretty sure = works for numbers, not quoted strings.

Rules of unix.com prevent very explicit help on classwork but I'm sure we can help you on useful debugging steps.