Re: how to log onto unix machine and run some job in background and then logout automatically in a script for 30+ such unix machines?
From: Eddie (eps102_at_xs4all.nl)
Date: 09/27/03
- Next message: Eddie: "Re: skip solaris 8?"
- Previous message: Eddie: "Re: Re-install Solaris"
- In reply to: walala: "how to log onto unix machine and run some job in background and then logout automatically in a script for 30+ such unix machines?"
- Next in thread: Michael Laajanen: "Re: how to log onto unix machine and run some job in background and then logout automatically in a script for 30+ such unix machines?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 27 Sep 2003 12:47:09 +0200
Try using keys indeed (you won't have to enter passwords; be sure to use
keys without passphrases).....and then:
ssh user@machine "nohup command &"
I guess now the machine is running your ssh command in background....
Regards,
Eddie
"walala" <mizhael@yahoo.com> wrote in message
news:bl2fmj$3is$1@mozo.cc.purdue.edu...
> Dear all,
>
> 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
> ssh username@machinename3.xxx.xxx.xxx
> nohub run_some_job_in_background &
> logout
>
> the trouble was:
>
> a. The above script scheme did not work. after I typed in the password for
> the first login, it logged onto the first machine, and run .cshrc of that
> machine, and then stopped, without running my "nohub" and "logout"
command,
> basically, it stopped there;
>
> b. Even if the scheme worked, there still has the trouble that everytime I
> need to type in password again and again for the 30+ machines...
>
> Can anybody give me help on how to fully streamline the whole process?
>
> Thanks a lot,
>
> -walala
>
>
- Next message: Eddie: "Re: skip solaris 8?"
- Previous message: Eddie: "Re: Re-install Solaris"
- In reply to: walala: "how to log onto unix machine and run some job in background and then logout automatically in a script for 30+ such unix machines?"
- Next in thread: Michael Laajanen: "Re: how to log onto unix machine and run some job in background and then logout automatically in a script for 30+ such unix machines?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|