Zitoune has asked for the wisdom of the Perl Monks concerning the following question:

I'm connecting by RASE to a remote machine and i'm copying a perl file on the remote.
The thing i would like to do is start this script on the remote machine.
Is there a way of doing this ??
  • Comment on Starting a script perl on a remote machine

Replies are listed 'Best First'.
Re: Starting a script perl on a remote machine
by maa (Pilgrim) on Jan 09, 2004 at 14:32 UTC

    Hi,
    I'm going to assume you're using Windows, otherwise you'd use SSH...

    I'm also sure that this question gets asked all the time so perhaps it's time someone wrote a tutorial type example about this?

    You can also do this using PSExec which required no code(!) or WMI.

    Hope that's a start for you...

Re: Starting a script perl on a remote machine
by Abigail-II (Bishop) on Jan 09, 2004 at 14:38 UTC
    One way of doing it would be to setup UUCP ... Or if it's a Windows box, get yourself a kit and exploit one of its many security holes to 0wn the box. ;-)

    Abigail

Re: Starting a script perl on a remote machine
by kutsu (Priest) on Jan 09, 2004 at 15:29 UTC

    If you can set it up with a telnetable ip, I'd use SecureCrt to telnet in or if you don't need security CRT which has a 30-day trial period. Of course you could just search google for ssh software.

    "Pain is weakness leaving the body, I find myself in pain everyday" -me

Re: Starting a script perl on a remote machine
by Zitoune (Beadle) on Jan 09, 2004 at 16:42 UTC
    I would like something that i could code in Perl.
    My perl version is kind of old. ( 5.005 ) So i would need something that could fit my old time Perl :-(
    I'm trying to make my company change their perl, so that i could program them better script !!

      You can script CRT and SecureCRT in perlscript, that why I recommended it, sorry for not pointing that out ahead of time

      "Pain is weakness leaving the body, I find myself in pain everyday" -me