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

Amblikai:

Why not set the variable(s) as the first steps in your generated script?

...roboticus

When your only tool is a hammer, all problems look like your thumb.

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

Replies are listed 'Best First'.
Re^6: Advice on running perl program over ssh
by Amblikai (Scribe) on Jul 15, 2014 at 21:57 UTC

    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!

      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?

        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!