From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MlQxE-0003zh-IV for garchives@archives.gentoo.org; Wed, 09 Sep 2009 17:27:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0137BE0AB9; Wed, 9 Sep 2009 17:27:35 +0000 (UTC) Received: from Princeton.EDU (postoffice05.Princeton.EDU [128.112.133.189]) by pigeon.gentoo.org (Postfix) with ESMTP id CB7C2E0AB9 for ; Wed, 9 Sep 2009 17:27:34 +0000 (UTC) Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.13.8/8.13.8) with ESMTP id n89HRYUk002221 for ; Wed, 9 Sep 2009 13:27:34 -0400 (EDT) Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190]) (authenticated bits=0) by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id n89HRXGs009975 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Wed, 9 Sep 2009 13:27:34 -0400 (EDT) Received: by sep.dynalias.net (Postfix, from userid 1001) id 5F7DFEC755; Wed, 9 Sep 2009 13:28:01 -0400 (EDT) Date: Wed, 9 Sep 2009 13:28:01 -0400 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] autossh Message-ID: <20090909172801.GA3577@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <6b16fb4c0909080412j136f714cn6f3df3e591d6441a@mail.gmail.com> <6b16fb4c0909082304m67d27053ie8bb31bfe17fa51d@mail.gmail.com> <20090909084645.GA9085@princeton.edu> <6b16fb4c0909090208s5956e85fweb1593d860cc5832@mail.gmail.com> <20090909115124.GA15268@princeton.edu> <6b16fb4c0909090541t113e787eye0dcc676686f58ee@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b16fb4c0909090541t113e787eye0dcc676686f58ee@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: 948487c2-2c8b-4923-b39e-ec7016fa5098 X-Archives-Hash: 2542a0d95cb56cab126fcd7e6290c270 On Wed, Sep 09, 2009 at 06:11:20PM +0530, Penguin Lover Kaushal Shriyan squawked: > > file `which autossh` What about this command? I want to see if autossh is a wrapper script so that it has its own environment. > $ AUTOSSH_POLL=100 autossh hostxxx > autossh[16050]: checking for grace period, tries = 0 > autossh[16050]: starting ssh (count 1) > autossh[16053]: execing /usr/bin/ssh > autossh[16050]: ssh child pid is 16053 > autossh[16050]: check on child 16053 > autossh[16050]: set alarm for 600 secs > ^Cautossh[16050]: received signal to exit (2) Regardless, you should file a bug. The way it is ignoring the environmental variable is definitely different from what the man page says it should do. The only things I can think of that gives it such behaviour is either (i) The software itself is broken and doesn't respect the variable. (ii) /usr/bin/autossh is actually a wrapper script so you need to set the variables in there, instead of in your .bashrc. For either case, the behaviour is not consistent with the man page. W -- M: Hey, do that again! Make the computer beep... W: As you wish! M: ah~~ ah~~... hum, that beep was a G. W: how can you tell? (turn around) oh... no fair... a tuner Sortir en Pantoufles: up 1006 days, 16:16