On 13/06/2002 17:47:01 Chris Anderson wrote:

[snip]
>
>What is my problem:
>
>It work:

No, it doesn't , unless you have a program with a VERY interesting name
in C:\winnt, called "system32
sh.exe"

(including the linebreak !)

>Win32::Process::Create($ProcessObj,
>                   'c:\\winnt\\system32\rsh.exe',
                                        ^^
Hint: that's not an 'r', there. --------^^

Please use forward slashes in the future, unless you are constructing
a commandline for CMD.EXE, COMMAND.COM, or any of the legacy commands
(XCOPY, etc). Every component of Win32 understands forward slashes
'/' as path separator, except for the command interpreter.

>                 'rsh x.x.x.x -l compname sh account',
>                 0,
>                 NORMAL_PRIORITY_CLASS,
>                 '.');
>$ProcessObj->Wait(2000);
>
>:)
>
>IT DON'T WORK !
>Win32::Process::Create($ProcessObj,
>                   'c:\\winnt\\system32\rsh.exe',
>                   'rsh x.x.x.x -l compname sh account >account.log',
>                   0,
>                   NORMAL_PRIORITY_CLASS,
>                   '.');
>$ProcessObj->Wait(2000);
>
>WHY?
>

"It don't work" is not good enough as a description of a problem.
What do you expect to happen ? What is happening instead ?


--
Csaba Ráduly, Software Engineer                           Sophos Anti-Virus
email: [EMAIL PROTECTED]                        http://www.sophos.com
US Support: +1 888 SOPHOS 9                     UK Support: +44 1235 559933

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to