Error running shell script when zipped
849029May 3 2011 — edited May 3 2011I have developed some custom EBS code. I have created shell script to deploy it.
I zipped shell script and the code into a zip file. Then I FTPed the zip file to unix server using WinSCP. I unzipped it and when tried to run shell script got following error:
stty: invalid argument `-echo\r'
Then I FTPed the folder (containing shell script and code) directly. When I run the shell script, it runs perfectly fine.
Problem is - I need to provide this script to DBA for deployment. He needs it as a single zip file and not as a folder.
Can someone please tell me why the zip-unzip is causing problem with shell script. The shell script is very simple. It takes password input from user, copies few files and runs some SQL scripts.
Any suggestion/help in this regard is appreciated.
Thanks