Hi All, I need to execute "*psexec.exe"* which is in C:\Windows\system32 through perl scirpt. .I am getting the error "*'psexec' is not recognized as an internal or external command,operable program or batch file"*
Below is the perl script. --- SNIP #!/usr/bin/perl -w use strict; use warnings; use File::Copy; use File::Find; $ENV{path}= $ENV{path} . ';' . 'C:\\Windows\\System32'; my $cmd='psexec' . " " . '\\\\' . 10.1.1.121 . ' -u ' . "Adminuser" . ' -p ' . "adminpassword" . ' -w ' . "C:\\commands\\AutoIT\\ ". " \"C:\\commands\\AutoIT\\sch.bat\""; system("$cmd") or die "$!"; --SNIP. PS: If i directly run the command on dos promt it gets executed, I am getting error if I run the command through perl script only. Please help me with the below. Thanks, Siva