Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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

 
discard

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.