Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?

From: Bryan Dongray (btd_at_dongrays.com)
Date: 09/27/03

  • Next message: Bill Marcum: "Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?"
    Date: Sat, 27 Sep 2003 12:22:28 -0500
    
    

    walala wrote:
    > I am facing a problem that needs your help... I need to run a simulation in
    > part on about 30+ unix workstations, servers, etc. We use ssh here.
    >
    > Every time I need to do the following:
    >
    > ssh username@machinename1.xxx.xxx.xxx
    > nohub run_some_job_in_background &
    > logout
    > ssh username@machinename2.xxx.xxx.xxx
    > nohub run_some_job_in_background &
    > logout

    I had a similar need, but as ssh goes out of its way to not
    accept standard input to allow me to do a send/expect sequence,
    I did the same thing with a telnet to localhost first.

    I not have less respect for ssh since it doesn't behave properly
    with stdin as a non terminal. Similarly telnet used to have an
    issue with stdin, but it seems most systems are ok now, so my
    respect of telnet has improved.

    Anyway, what you need is a send/expect program to run ssh somehow,
    piping input to it, and reading the output back, simulating
    someone typing interactively.

    My question to everyone is can ssh be made to behave properly
    with stdin, that is, so someone can open a pipe to it, to do
    send/expect type of things.

    ALTERNATIVELY, you can run ssh line this:
            ssh u@host run-some-job
    where "run-some-job" disconnects itself fully from the connection.
    I find:
            at now + 1 min < some-script
    is very good at that.
    But you have to setup your ssh to allow trusted connectivity
    and no password (read the manual).


  • Next message: Bill Marcum: "Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?"

    Relevant Pages

    • Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a
      ... I need to run a simulation in ... We use ssh here. ... I think you mean "nohup", and couldn't you do it on one line, like ...
      (comp.unix.misc)
    • RE: Commentary on the seven words
      ... When I was an operating systems programmer we all too often forgot that the Operating system existed to support the application, not the other way around. ... A Because the application that we run uses a telnet client that doesn't support ssh - and that's why I can't run ssh on this system. ... I administrate one system that has 128 clients on it and it's ...
      (RedHat)
    • Re: Commentary on the seven words
      ... A Because the application that we run uses a telnet client that doesn't ... support ssh - and that's why I can't run ssh on this system. ... General Red Hat Linux discussion list ... >operating system and utility advice and assistance and there are SEVEN ...
      (RedHat)
    • Re: Commentary on the seven words
      ... routinely asked to help with enabling rsh and telnet. ... Shoot, I use SSH & all that, but if I wanted to allow it for some ... > I wrote in with a complaint that Linux will allow a process (like Tar, ... I administrate one system that has 128 clients ...
      (RedHat)
    • Re: OSR507: xm_vtcld : could not open libXm.so
      ... laptop, I can run successfully "scoadmin software" if I'm through SSH, ... LINUXLAPTOP $ telnet 172.xxx.101.66 ... Similarly cron jobs have a different environment, and cgi-bin scripts ...
      (comp.unix.sco.misc)

  • Quantcast