Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get a Windows server to tell a LINUX server to run a script?

share|improve this question
up vote 8 down vote accepted

Using SSH. You can specify a command to run on the command-line, and you can set up SSH keys so that you don't need to enter a password every time.

You can get OpenSSH for Windows from the full Cygwin environment or just the parts you need. A good SSH client for interactive use is PuTTY.

Here is a good guide to running remote commands and setting up SSH keys.

share|improve this answer

Depending on your needs, you could also make the script web accessible, such as putting a php wrapper on it, then have the Windows host (or any other host for that matter) trigger the script at the interval you need.

Of course, make sure you have proper security procedures in place if you choose to go this route.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.