Hi again, I got it to run finally!! Thank you so much for your advice. I created the file again using vi and it's running fine now. I think it's really the end-of-line thing between unix and windows. Thank you so much for your help :) Siritip