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

Yeah i think that's what i'll do. It was for the DISPLAY variable

Some of the processes in my generated script(s) bring up this pointless little splash screen

Is there anyway to suppress this kind of stuff?

Also, i've had to change my approach somewhat. The generated script was a list of bsub (lsf) commands. But i've been trying to get pre and post processing working with each bsub command and it seems i can't use the -E and -Ep bsub options, they've been disabled by the admin. So i've resorted to generating a separate shell script for each bsub command.

So i now have about a hundred seperate shell scripts i need to run over ssh! How do i do that with the method discussed?

Thanks for all your time and replies. Its very much appreciated!

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

Replies are listed 'Best First'.
Re^7: Advice on running perl program over ssh
by salva (Canon) on Jul 16, 2014 at 06:30 UTC
    Is there anyway to suppress this kind of stuff?

    There is not a unique right solution for that. Some programs allow to disable their splash screen using some flag on the command line or from the configuration file.

    You can run Xvfb and set is as the target X server.

    So i now have about a hundred seperate shell scripts i need to run over ssh! How do i do that with the method discussed?

    Have you considered using some module like Net::OpenSSH?

      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?

        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.

      Ignore my last reply! I've now got Net::OpenSSH installed locally. That was easy!

      Now i just have to figure out how to use it! Any pointers or sample scripts?

      Thanks!

        The synopsis shows the most important things. To start learning how to use new, capture2 and error is enough and quite straight forward.

        There is a samples directory on the distribution, though, they are for advanced topics.

        Unsurprisingly there are sample scripts in the sample directory.