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
- Previous message: Kim Therkelsen: "Re: Forward hotmail email to other email account"
- In reply to: walala: "how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?"
- Next in thread: Bill Marcum: "Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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).
- Previous message: Kim Therkelsen: "Re: Forward hotmail email to other email account"
- In reply to: walala: "how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?"
- Next in thread: Bill Marcum: "Re: how to logon to 30+ machines and put a job run in background and then logout automatically in a script file?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|