It must have been the local executables. After replacing them, the script ran fine. Thanks to all of you for your suggestions. Five stars for everyone!