develooper Front page | perl.beginners | Postings from March 2002

RE: Running a command Remotely on another Host

Thread Previous | Thread Next
Timothy Johnson
March 4, 2002 08:13
RE: Running a command Remotely on another Host
Message ID:
   The easiest way to do this on Windows NT/2000/XP systems is to remotely
set a task via the scheduler.  The quickest way to do this would be to use
the Win32::AdminMisc extension available from (he also has a ppm repository for
installing it), but you can also use the Win32::Lanman module.  

   The only downside is that since the scheduler runs as the LocalSystem
account by default, you can't run programs on remote machines in this
manner.  You have to copy the files locally first.

   From what I understand you can also do this using WMI, but I haven't
delved into that area yet.  If you are going to be working on primarily
NT/2000/XP clients, you might want to check out the perl-ntadmins mailing
list at, too.  There are a few people there that can give you
NT-specific perl help.

   One final piece of advice, check out Dave Roth's Win32 Perl: the Standard
Extensions 2nd edition.  It has a lot of examples on administering NT
systems using Perl.

-----Original Message-----
From: Jon Molin
To: norishaam
Sent: 3/4/02 1:38 AM
Subject: Re: Running a command Remotely on another Host

norishaam wrote:
> Hi,
>         I've been trying to figure out the above, maybe someone has
> experience...Below is the scenario:-
> 1. I have an executable, update.exe, that can run locally to update
> service pack.
> 2. I am trying to write a perl script to have this update.exe to run
> multiple remote machines, excuting it from my machine.
> 3. There isn't any option for this update.exe that allows it to run on
> remote machines that I specified.
> 4. Is there any perl module, or perl way that I can get this done.
> Appreciate any response from the gurus out there. Lotsa thanx in

I don't know windows really but the way i'd do it in *nix would be by
ssh, and there are ssh servers for windows too, aren't there?
You could either use the ssh module or just use ssh from shell


>            \|||/
>              (o o)
> ----ooO-(_)-Ooo--------
> Norishaam Adam
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About