Getting error while executing shell script in Cygwin?

0

I have done a script (bash) and kept the same in E:\Ping folder of my local Windows 7 m/c, and I am trying to run the same through Cygwin. I'm getting a bash: sh : command not found error. What is causing this error?

Steps I have followed:

cd /cygdrive/e/Ping

sh ping.sh

Saravanan

Posted 2013-07-19T09:32:41.530

Reputation: 1

Answers

0

./script.sh is the correct way of calling executable scripts.

Verify you actually have sh by running /bin/sh if not install it with cygwins integrated package manager.

Sam Aleksov

Posted 2013-07-19T09:32:41.530

Reputation: 101