Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
share|improve this question
add comment

1 Answer

./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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.