开发者

How to execute shell script in cygwin? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

开发者_StackOverflow中文版 Improve this question

the name.sh already save in C:\Documents and Settings\user, i type sh name.sh

sh: testing.sh: No such file or directory

any help will be appreciated!


You can just type ./name.sh and your script should run.

If your current directory is not in your $PATH, adding the ./ tells the shell to look there.

The other possibility is that you're not currently in the right directory. If the result of pwd shows you are not in C:\Documents and Settings\user, then you will need to cd to that directory, or move the script to whatever directory you are in.


Add ./ in front of the name. ./name.sh

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜