The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 03-05-2005
muthukumar muthukumar is offline
Registered User
  
 

Join Date: Feb 2005
Location: Coimbatore, Tamilnadu, India
Posts: 119
To simply start to debug then execute that ksh script in debug mode as,

ksh -x <script.ksh>

it will give appropriate location where it is getting problem.

You can not work for loop as lik fore ((y=0; y<=${#fName[*]}; y++)) in shell script so that you can use while instead of it as,

y=0
while [[ $y -le ${#fName[*]} ]]
do
action;;
let y=y+1
done

It will do that trick.

HTH.