Re: how to execute a windows 2000 command with perl

2001-04-26 Thread Johnathan Kupferer
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

RE: how to execute a windows 2000 command with perl

2001-04-25 Thread King, Jason
Peter Lemus writes .. >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" for starters the above will turn into the following

RE: how to execute a windows 2000 command with perl

2001-04-25 Thread blowther
Just to clarify: >From machine A you want to remotly execute a script on machine B? If I understand your question correctly, you well have a hard time doing that using Perl alone. I would recommend looking and CYGNUS http://www.cygnus.com for information about rsh on win32 platform. If I'm not

RE: how to execute a windows 2000 command with perl

2001-04-19 Thread Nic LAWRENCE
Peter, You should have no problems executing binaries using the system() function,.. but if you're having problems with shell commands like "dir" etc, you should try something like: system("c:\winnt\system32\cmd.exe /c dir c:\mydir"); Alternatively there are modules available which will more th

Re: how to execute a windows 2000 command with perl

2001-04-19 Thread Casey West
On Thu, Apr 19, 2001 at 12:59:29PM -0700, Peter Lemus wrote: : Hi, nd help. : : Please let me know how I can execute a windows 2000 : command from a perl script? any command like dir for : example. You can also use the Shell module, in the standard distro. see 'perldoc Shell' or

RE: how to execute a windows 2000 command with perl

2001-04-19 Thread Nutter, Mark
You should be able to use system() for Windows calls that don't return results, or backticks (``) for calls that do return results. Be aware that if you specify absolute Windows paths (`dir C:\win2000\system32`), you may have problems with the backslash being interpreted as an escape character --