You can of course do that, but you'll have to install e.g. OpenSSH on the Windows machine, since Windows does not come with native SSH support. See http://www.openssh.com/win
Main Topics
Browse All TopicsI have some batch files i want to run from a linux machine. Is it possible to write a script that will ssh into a machine and then run a script and keep the script running after the session closes ( ie the script from the linux machine finishes)?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You can of course do that, but you'll have to install e.g. OpenSSH on the Windows machine, since Windows does not come with native SSH support. See http://www.openssh.com/win
Sorry guys for the late reponse
@oocyte: So if user logs out will the process remain? It seems that if i log out the cmd would close and the process would die. I guess i would need to keep the user logged in then?
@jkr when i ssh into the windows machine which user would i give to access it? right now the windows machine is user corporate accounts. Do i need to create a local account ?
Business Accounts
Answer for Membership
by: oocytePosted on 2009-10-11 at 21:05:41ID: 25548592
You can try using the "START" command to call your batch files.
Starts a separate window to run a specified program or command.
START [command / program] [parameters]
command / program
If it is an internal cmd command or a batch file then the command processor is run with the /K switch to cmd.exe. This means that the window will remain after the command has been run.
If it is not an internal cmd command or batch file then it is a program and will run as either a windowed application or a console application.