How are you trying to execute the script, "./my script" or "sh ./my_script"? -- Regards, James. http://www.jamesbensley.co.cc/ - There are only 10 kinds of people in the world, those who understand trinary, those who don't understand trinary and those who don't understand trinary.