Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^8: Advice on running perl program over ssh

by Amblikai (Scribe)
on Jul 16, 2014 at 08:39 UTC ( [id://1093813]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Advice on running perl program over ssh
in thread Advice on running perl program over ssh

I didn't know about Net::OpenSSH. I'll definitely be looking into that. It means i'll need to install modules locally though which i haven't done before. Any good tutorials on doing that?

Is there a way in the meantime of running all the shell scripts through SSH in a bash script for example?

  • Comment on Re^8: Advice on running perl program over ssh

Replies are listed 'Best First'.
Re^9: Advice on running perl program over ssh
by salva (Canon) on Jul 16, 2014 at 09:07 UTC
    I am confused, on the main post on this thread you said you run everything locally, and that you can install modules there but now you say you have never done that. Is that right?

    Which OS/distribution are you running on your machine? Net::OpenSSH is available as a native package for several Linux distributions (Debian, Ubuntu, Fedora, etc.). Otherwise you can install it running the CPAN client as root:

    # cpan Net::OpenSSH
    In case you can't be root, there are several other approaches, for instance, using local::lib.

      Yeah sorry for the confusion. Up until now i had to ask our sysadmin to install modules for me. They sometimes take ages to do it and i hadn't ever tried installing them locally until now. I'd still prefer to run my scripts on my local machine though, rather than try to install modules on the remote machine/LSF.

        Just to be sure you are understanding me: you don't need to install Net::OpenSSH on the remote machine, just on your local machine where you run your scripts.

        The module just allows to run ssh in a friendly and perlish way, and invoke several remote commands over one single SSH connection and takes care of a lots of ugly details.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1093813]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-26 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found