I'm using the tcsh shell. After your reply I switched to the csh shell, and it worked fine. Anything I can do about the tcsh shell on the HP machine? I prefer the tsch shell. The script works great under Linux. I wonder why its different on the HP? Thanks for the response, Krister