1

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

2 Answers 2

8

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.

2

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .