From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4022 invoked by alias); 18 Jan 2013 15:35:40 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17585 Received: (qmail 26480 invoked from network); 18 Jan 2013 15:35:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130118073522.ZM24670@torch.brasslantern.com> Date: Fri, 18 Jan 2013 07:35:22 -0800 In-reply-to: <20130118141322.GE4666@lp-shahaf.local> Comments: In reply to Daniel Shahaf "Re: Backgrounding part of 'ssh-agent $cmd'" (Jan 18, 4:13pm) References: <20130116065951.GA2992@lp-shahaf.local> <130116093514.ZM19656@torch.brasslantern.com> <20130118061845.GC3024@lp-shahaf.local> <130117232602.ZM23841@torch.brasslantern.com> <20130118141322.GE4666@lp-shahaf.local> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Backgrounding part of 'ssh-agent $cmd' MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jan 18, 4:13pm, Daniel Shahaf wrote: > > The part that I find less than ideal so far is that, under load, the GUI > ssh-askpass dialog appears after foo_main has started. You could do it like this: ( # Subshell so caller's environment won't be changed; could instead # declare locals, but this is immune to changes in ssh-agent eval `ssh-agent` ssh-add ~/.ssh/foo.id_rsa { for h in host1 host2 host3; do ssh -MNf $h & done wait } always { ssh-agent -k } & ) Then you don't have to background foo_ssh_preseed, and your preferred order of events is retained. > > Am I missing something? > > 'ssh -MNf' daemonizes itself Ah, of course.