I'm trying to write a perl script that will exec a command to stop and then restart a service on a remote win32 server if that service is not functioning. I know how to determine if the service isn't functioning, but I don't know how to initiate an rpc call to that remote pc. What's the best way to do this with perl under win32? Thanks in advance.
UPDATE: I was looking for a straight perl solution, I've
played around with IPC::Msg but can't seem to get it to
work on Win2000, don't know if I have something wrong or
if it just isn't win32 compatible. Didn't know if there
were any other "pure perl" options. The llama in me wants
to do it straight perl if I can....
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||