in reply to Win32::KillProcess

wonderfull!!!

how can I launch on a remote pc a perl scripts with argoument?

Replies are listed 'Best First'.
Re: Re: Win32::KillProcess
by tachyon (Chancellor) on Mar 12, 2004 at 17:58 UTC

    You need perl installed on the remote machine to run perl scripts on it. If it is, say on G:

    use Win32::KillProcess qw( connectServer startProcess ); my $c = connectServer( $server, $user, $pass ); startProcess( $c, "G:\\perl\\bin\\perl.exe C:\\test.pl command line ar +gs" );

    cheers

    tachyon

      I am running this code which works great except for one thing. When I try to execute a non existing exe it still returns 0 and a pid. Why is that? Thanks, boat73