That was our conclusion as well. It works just fine from the Korn Shell script. I suspect that the error message about the pend is a red herring. I suspect the problem lies earlier in commands, or in how it is running. We're going to keep at it because at least with this we are getting better error messages than we were (which is to say none at all) when running from a Perl Module.
Thanks though. At least its giving me a direction to work in.
"Ex libris un peut de tout"