Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to use a Unix script on a remote server that has Unix installed to call call/run Windows program.

share|improve this question
Please can you elaborate on what you are trying to achieve here and what your situation and setup is? –  Andy Bowskill Mar 14 '11 at 12:34
add comment

migrated from stackoverflow.com Mar 14 '11 at 12:38

This question came from our site for professional and enthusiast programmers.

closed as not a real question by ChrisF, studiohack Mar 14 '11 at 20:14

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

There are a number of ways this could be achieved.

If the Windows software you are wanting to run can be executed from the command line and perform all the functions you want by the use of command line switches then you could install and configure an SSH server on the windows machine then use SSH to connect from the Unix machine and execute the command on the Windows machine.

Otherwise you would have to investigate various options involving non-standard protocols and automation scripting using propriatory systems.

The SSH route is the way I would choose personally if possible.

share|improve this answer
add comment

You're looking for winexe. I've used it to communicate to a Windows VM from a Linux host effectively.

share|improve this answer
add comment