Execute Bash script on Ubuntu from remote Windows machine?
I have a bash script on a ubuntu 10.4 machine. It is shared and I can access it from my win7 machine with \\LINUX-SERVER\bash_repo\make-live
However when I do, windows tries to open it. This is not what I want. I want to tell ubuntu to execute it.
I am actually hoping to be able to build a GUI app on windows where the user clicks a button and it tells the bash script on the ubuntu machine to execute.
Is any of this possible?
Solution 1:
Have you tried plink from the makers of PuTTY? http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
You should be able to run the script on the ubuntu machine like:
plink.exe -ssh -pw pass -noagent user@linux-server /path/to/your/script/make-live