If you use psexec there is a switch -c that will copy your batch file to the client.
You could include the psexec command in your perl script and use a foreach loop to hit every machine name that you store in the array.  If you use the -d switch the psexec will not wait for any failures so your script won't hang on mmachines you cant run the process on.

Also rclient allows the copying and executing of batch files.

Dex

"DePriest, Jason R." wrote:

 

I currently use an ugly practice...
I create a batch file locally, upload it to the remote system using robocopy (from the NT Resource Kit), then use psexec (from sysinternals) to force it to run on the other system.

This isn't pleasant, but it works.

-Jason

-----Original Message-----
From: Veeraraju_Mareddi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 1:34 AM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: Remote process

Dear List

How do we execute some script on  REMOTE machine. That means I wanna create
a process on a remote machine which is my perl script. Is there any module
written for this purpose. Can we do it with Win32::AdminMIsc

your help and suggestion would be highly appriciated

With Regards
Rajuveera

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to