Cmder bash script executing

后端 未结 6 1067
太阳男子
太阳男子 2021-02-13 05:35

I created basic script in Windows.

#!/bin/bash

echo Hello

I am using Cmder, ConEmu derivative. I tried to change the priviliges with chmod, bu

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-13 06:00

    I've noticed you can run bash from cmder. So I could do it like:

    > bash
    $ ./yourScript.sh
    

    or simpler

    > cat yourScript.sh | bash
    

    Disclaimer: New to cmder (just downloaded it) and Linux myself.

提交回复
热议问题