How to run bash script from windows using plink on linux
- by user128877
I'm trying to run a simple bat file from windows that will run a bash script on linux machine.
The bash script is located on the linux machine.
For example:
I'm trying to run this bat file from windows
plink.exe -pw <password> root@<ip> bash -c "/root/script.sh"
Result:
When running from windows the cmd is stuck forever
when running the specific script (/root/script.sh) from the linux machine it's working just fine.
The script contain ruby code and I'm using RVM