Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Fire a script on Windows from Linux

by dasgar (Curate)
on Jun 26, 2014 at 18:22 UTC ( #1091381=note: print w/replies, xml ) Need Help??

in reply to Fire a script on Windows from Linux

The first thing that comes to mind is to do something like what Limbic~Region suggested - which is to have Perl scripts running on the two systems that communicate with each other somehow (web interface, files on shared storage, etc.).

Here's a general idea of what I used between two Windows systems, but should work for you. On one system, I used IO::Socket::INET::Daemon to create a "telnet" server that would run do something with local hardware and return information to the client. I used Task Scheduler to start the script on system start even if no user is logged on. Then I used Net::Telnet from another system to interact with the "telnet" server.

Regardless of the route that you choose to go, the basic idea is that you have to have some kind of service (such as web/telnet/ssh server or script/executable running) on the Windows system, which means that you will have to make some kind of change to the Windows system so that something is running so that your remote system can interact with it.

  • Comment on Re: Fire a script on Windows from Linux

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1091381]
[marto]: yay, Depeche Mode at the Barrowlands on Sunday. The best venue in Glasgow for music, despite it's looks :) Also the smallest gig DM will have played in a long time

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2017-03-24 11:30 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.