[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Sending commands between Linux and Windows



In article <fiB7g.2745$fb2.1596@xxxxxxxxxxxxxxxxxxxxxxxxxx>,
Renoir <chinson@xxxxxxxxxxxxx> wrote:
>  I run all my X10 hardware on my PC, and alot of other applications on my
> dedicated Linux server (Fedora Core 3).
>
> What I want to be able to do is have scripts run commands on the other
> machine in response to events. For instance, if my Apache server goes down,
> the Linux server tells the PC to ring an X10 chime and turn on a light. Or
> if I get frontdoor motion, the PC tells the Linux server to log the event
>in
> a secured web directory.
>
> The problem is that, as obvious as the issue seems to be, I can find no
> solutions. I'm thinking something like rsh would do the trick, but I can't
> find any decent and free rsh stuff for Windows/XP. I found some choppy
> source codes for a Windows port of rshd that I couldn't compile, but I
> couldn't find any ready solution.
>
> Does anybody have good solutions for this? And does anybody have a good rsh
> client and server for a Windows XP machine?
>
> Thanks
> Curtis
>
>

Well, if you don't mind learning a new scripting language, Tcl/Tk would fit
the bill quite nicely.  Scripts (for the most part) can be written so that
they are portable across platforms.  Communication between (for example) a
script running under Linux and another running under Windows could be done
with sockets.  I do this between Windows systems all the time and, up until a
couple of weeks ago when I "retired" an old Linux box, I had scripts running
there which communicated with the Windows scripts.  Check for an article I
posted the beginning of April called "Scripting 101" for more information.

Dave



comp.home.automation Main Index | comp.home.automation Thread Index | comp.home.automation Home | Archives Home