I'm trying to run a simple bat file on Windows that will run a bash script on a remote Linux machine. The bash script is located on the Linux machine.
For example: I'm trying to run this command in a batch file on 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