From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: [ANN] Guile-SSH 0.8.0 released Date: Wed, 02 Sep 2015 21:55:46 +0200 Message-ID: <87zj1461fh.fsf@gnu.org> References: <874mje10bc.fsf@elephant.savannah> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1441223783 26459 80.91.229.3 (2 Sep 2015 19:56:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Sep 2015 19:56:23 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Sep 02 21:56:16 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZXE8k-0004Sc-OG for guile-user@m.gmane.org; Wed, 02 Sep 2015 21:56:14 +0200 Original-Received: from localhost ([::1]:41025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXE8k-00037i-TJ for guile-user@m.gmane.org; Wed, 02 Sep 2015 15:56:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58476) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXE8Z-00037E-AO for guile-user@gnu.org; Wed, 02 Sep 2015 15:56:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZXE8W-0007AI-4a for guile-user@gnu.org; Wed, 02 Sep 2015 15:56:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZXE8V-00079x-UR for guile-user@gnu.org; Wed, 02 Sep 2015 15:56:00 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZXE8R-0004Gr-8G for guile-user@gnu.org; Wed, 02 Sep 2015 21:55:55 +0200 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Sep 2015 21:55:55 +0200 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Sep 2015 21:55:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Fructidor an 223 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x3D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:+pC3C8cDBZZZVDXNB43eeruhqSQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11987 Archived-At: Artyom Poptsov skribis: >> I think the manual should explicitly remind people that the REPL >> server must already be running on the remote machine. > > I guess it is already mentioned in the manual. From "(guile-ssh) > Distributed Forms": > > To make use of the procedures listed in this section you will need an > SSH daemon and a GNU Guile REPL server both running on the remote > host. Oh right. > Or should I elaborate on this? Maybe in the ‘with-ssh’ example (which is what lazy folks like me will copy/paste to their REPL), you could replace “Example:” with something like: For example, assuming a REPL server is running at @code{www.example.org}, the following code invokes @code{gethostname} on that machine: >> I wonder if it would make sense to offer an alternate option where the >> calling machine invokes ?guile? on the remote side and talks to it on >> stdin; this could simplify some use cases. WDYT? > > Sure enough, we can call 'guile' on the remote side using > 'channel-request-exec' before using of procedures from (ssh dist). That > looks like a great idea, I need to think about the implementation. Maybe that could be an option of objects. >> However, this: > >> (let ((session (make-session #:user "ludo" #:host "xxx"))) >> (connect! session) >> (userauth-agent! session) >> (with-ssh (make-node session) >> (use-modules (ice-9 ftw)) >> (scandir "/"))) > >> returns only two values, the language and the module. > > Thank you for reporting that bug, fixed in 76d8df2 on the master. Also > I fixed parsing of RREPL errors, in c7b6a79. > > Please check if it works for you. I confirm that it fixes the problem. Thanks! Ludo’.