From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.tramp,gmane.emacs.devel Subject: Re: SCPC Detection Program Date: Mon, 12 Apr 2010 21:18:07 +0200 Message-ID: <87iq7weaz4.fsf@gmx.de> References: <8739z26jxo.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1271099971 23610 80.91.229.12 (12 Apr 2010 19:19:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Apr 2010 19:19:31 +0000 (UTC) Cc: tramp-devel@gnu.org, emacs-devel@gnu.org To: Noah Lavine Original-X-From: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Mon Apr 12 21:19:29 2010 Return-path: Envelope-to: tramp@deer.gmane.org Original-Received: from quimby.gnus.org ([80.91.231.51]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O1PAM-0000rn-WF for tramp@deer.gmane.org; Mon, 12 Apr 2010 21:19:27 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1O1PAM-0002I6-00 for ; Mon, 12 Apr 2010 21:19:26 +0200 Original-Received: from localhost ([127.0.0.1]:47093 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1PAL-0008D0-GO for tramp@quimby.gnus.org; Mon, 12 Apr 2010 15:19:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1PA9-00088v-Bv for tramp-devel@gnu.org; Mon, 12 Apr 2010 15:19:13 -0400 Original-Received: from [140.186.70.92] (port=38417 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1PA7-00088M-O8 for tramp-devel@gnu.org; Mon, 12 Apr 2010 15:19:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1PA6-0000sa-Au for tramp-devel@gnu.org; Mon, 12 Apr 2010 15:19:11 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:55820) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1O1PA5-0000sP-US for tramp-devel@gnu.org; Mon, 12 Apr 2010 15:19:10 -0400 Original-Received: (qmail invoked by alias); 12 Apr 2010 19:19:06 -0000 Original-Received: from p4FC00A02.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [79.192.10.2] by mail.gmx.net (mp011) with SMTP; 12 Apr 2010 21:19:06 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+MHsFXkbeMfkOxbYk+P10IYLrqyz+NVd1vs/VT2X EmDtznhPqg/MWj In-Reply-To: (Noah Lavine's message of "Mon, 12 Apr 2010 15:06:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.68999999999999995 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: tramp-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: tramp-devel.gnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Errors-To: tramp-devel-bounces+tramp=quimby.gnus.org@gnu.org Xref: news.gmane.org gmane.emacs.tramp:7227 gmane.emacs.devel:123535 Archived-At: Noah Lavine writes: > Michael, Hi Noah, > Is there a commonly-used way to discover the capabilities of a system > other than version numbers? Talking to the system package manager > would also work for most (although not all) cases, and I could look > into writing a connection to PackageKit if that seemed like it could > work. > > It would also be really cool if the ssh program had a way to tell us > what command-line arguments it accepted, but I don't see any way to do > that short of asking it to open up a test connection and seeing if it > gave an error message. That might actually be a reasonable way to do > this, if you defer the checking until the first use of ssh - first try > opening a connection with ControlMaster, and if that fails, try again > without it. Maybe "ssh --help", and checking for the "-M" option, might be sufficient. Trying a "test connection" is not mature, because you don't know which test host to connect to. "localhost" does not need to run the sshd daemon. > Noah Best regards, Michael.