How to run bash script from windows using plink on linux
Posted
by
user128877
on Super User
See other posts from Super User
or by user128877
Published on 2012-04-18T08:20:00Z
Indexed on
2012/11/11
23:04 UTC
Read the original article
Hit count: 408
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
© Super User or respective owner