Y’day one of our PROD support team called up and asked that their ftp program is failing with the below error
/d05/applprod/11.5/xxzz/4.0.0/bin/ZZAAR1240F: No such file or directory usdsop: exec failed during spawn/d05/applprod/11.5/xxzz/4.0.0/bin/ZZAAR1240F Program exited with status 1
I first checked if the given shell script has the required permission to be executed by the application owner. and it was Ok – 755.
Then I opened the shell script on the server and tried to see if there is anything within the code that is causing the error. And there I saw the junk character (ctrl V + ctrl M). Looks like the file was edited in Windows and transferred to UNIX.
I removed all the junk character using the below command
:%s/(ctrl-v)(ctrl-m)//g and press Enter key.
Then I asked the support team to run the program. program completed successfully and file got transferred.
-Anand
Leave a comment