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

RE: Running a command Remotely on another Host

Thread Previous | Thread Next
From:
Timothy Johnson
Date:
March 4, 2002 08:13
Subject:
RE: Running a command Remotely on another Host
Message ID:
C0FD5BECE2F0C84EAA97D7300A500D5002581024@SMILEY
 
   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
http://www.roth.net/perl/adminmisc (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 topica.com, 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
Cc: beginners@perl.org
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
some
> experience...Below is the scenario:-
> 
> 1. I have an executable, update.exe, that can run locally to update
the
> service pack.
> 2. I am trying to write a perl script to have this update.exe to run
on
> 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
advance.

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

/Jon

> 
>            \|||/
>              (o o)
> ----ooO-(_)-Ooo--------
> Norishaam Adam
> 
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org


--------------------------------------------------------------------------------
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About