sagarkha has asked for the wisdom of the Perl Monks concerning the following question:
Tasklist command that is used to view task on a remote system is not working for me through perl script, however the same command works if i use it directly on windows command prompt.
open (OLDOUT, ">&STDOUT"); open (OLDERR, ">&STDERR"); open (STDOUT, ">c:\\Temp\\STDOut.txt") or die "Can't open STDOUT: $!"; open (STDERR, ">C:\\Temp\\STDERR.txt") or die "Can't open STDERR: $!"; system("tasklist /S 10.9.79.251 /U sagarkha /P ****** ");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tasklist command not working
by kennethk (Abbot) on Jul 15, 2011 at 14:18 UTC | |
|
Re: tasklist command not working
by jethro (Monsignor) on Jul 15, 2011 at 12:30 UTC |