Triggering remote unix shell script from Wind

September 5, 2011 at 23:25:42
Specs: Windows XP
I've been trying (rather unsuccessfully) to trigger a shell script stored on a remote unix server from my windows using a bat file.

Some of my attempts so far:

D:\putty.exe -load server -l user -pw password -m D:\cmd.txt

The cmd.txt contains the command to trigger the script.
When I run the above bat file, the unix session opens and closes abruptly but when I run the above command without the -m D:\cmd.txt the session opens fine.

I also tried using plink:
plink.exe user@server -pw password -m cmd.txt

but this won't work either. Any suggestions?

See More: Triggering remote unix shell script from Wind

Report •

September 7, 2011 at 01:26:34
Your commands are running, it's just that putty closes the connection after they have run so you don't see the results. For example, try a cmd.txt that consists of just

ls >temp.txt

You will find, after you have run it, that tmp.txt exists on the remote system. What exactly are you trying to do with the command file?

Report •
Related Solutions

Ask Question