Probably the easiest way to do this is if the machine that will be 
running the command is a web server.  You can just set up the script you 
want to run as a cgi and have the calling script call the cgi via http.  
Now, this is assuming alot, like security is not an issue and your web 
server has sufficient permissions to do whatever you want.

Of course, TMTOWTDI.  You might want to take a look at Win32::Process to 
see if it can solve your problems, or maybe there are some gurus reading 
along that can help out with this one...

- Johnathan

Peter Lemus wrote:

> Hi all,
> I need to execute a windows 2000 command through a
> perl script on a different machine. can someone give
> me an example on how to accomplish this.
> 
> I mapped a drive for example:
> system "net use x: \\\\myserver\myshare"
> now I can go to X:
> 
> How can I execute the command on the remote machine:
> some thing like:
> system "xcacls $line /g $line:r /E \n"; # set the
> permissions
> 
> I need to run this on the remote machine though.
> 
> 
> Regards,
> 
> =====
> Peter Lemus
> Computer Networks Engineer
> [EMAIL PROTECTED]
> My Dad always tought me; when you do good; expect to receive good; when you do bad; 
>expect the bad...sooner or later.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 
> 

Reply via email to