`
sunxboy
  • 浏览: 2828737 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

call bash shell script by dos command

 
阅读更多

 

1. at first we have a script say test.sh

 

2. to call it we need a bash shell environment in windows, say cygwin

 

3. then run below command: 

C:\XXXX\Cygwin\bin\bash --login "/cygdrive/e/scripts/test.sh"

 

 

that's it.

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics