all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ssh question...
@ 2018-06-19 11:26 Jean-Christophe Helary
  2018-06-19 13:30 ` Van L
  2018-06-19 13:36 ` tomas
  0 siblings, 2 replies; 5+ messages in thread
From: Jean-Christophe Helary @ 2018-06-19 11:26 UTC (permalink / raw)
  To: picolisp; +Cc: Help Gnu Emacs mailing list

I'm wondering if the following is possible:

Use emacs from my Mac, and use picolisp as the lisp executable to run with slime, but from my ssh'ed RaspberryPi...

Basically, can I call an executable from an ssh session to a different machine ?

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ssh question...
       [not found] <mailman.2242.1529412530.1292.help-gnu-emacs@gnu.org>
@ 2018-06-19 13:17 ` Loris Bennett
  2018-06-19 23:44   ` Jean-Christophe Helary
  0 siblings, 1 reply; 5+ messages in thread
From: Loris Bennett @ 2018-06-19 13:17 UTC (permalink / raw)
  To: help-gnu-emacs

Jean-Christophe Helary <brandelune@gmail.com> writes:

> I'm wondering if the following is possible:
>
> Use emacs from my Mac, and use picolisp as the lisp executable to run
> with slime, but from my ssh'ed RaspberryPi...
>
> Basically, can I call an executable from an ssh session to a different
> machine ?

Not knowing anything about picolisp or slime, I don't really understand
the question, but would a source block in an Org file on your Mac be of
any help, e.g.

  #+BEGIN_SRC sh :dir /jc@raspberrypi:
  emacs -batch -l ~/.emacs_minimal --eval=='(some-function)'
  #+END_SRC

?

Loris

-- 
This signature is currently under construction.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ssh question...
  2018-06-19 11:26 ssh question Jean-Christophe Helary
@ 2018-06-19 13:30 ` Van L
  2018-06-19 13:36 ` tomas
  1 sibling, 0 replies; 5+ messages in thread
From: Van L @ 2018-06-19 13:30 UTC (permalink / raw)
  To: Jean-Christophe Helary; +Cc: Help Gnu Emacs mailing list


> Basically, can I call an executable from an ssh session to a different machine ?

Over XQuartz I use an X11 Emacs on a different machine calling, `ssh -Y emacs`, if that helps.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ssh question...
  2018-06-19 11:26 ssh question Jean-Christophe Helary
  2018-06-19 13:30 ` Van L
@ 2018-06-19 13:36 ` tomas
  1 sibling, 0 replies; 5+ messages in thread
From: tomas @ 2018-06-19 13:36 UTC (permalink / raw)
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jun 19, 2018 at 08:26:59PM +0900, Jean-Christophe Helary wrote:
> I'm wondering if the following is possible:
> 
> Use emacs from my Mac, and use picolisp as the lisp executable to run with slime, but from my ssh'ed RaspberryPi...
> 
> Basically, can I call an executable from an ssh session to a different machine ?

This smells like an A/B question. First the A part (i.e. what you
asked):

As Loris said, the Org Mode trick is pretty nifty. The underlying
machinery is Tramp, and you can get that without Org. Try the
following:

  M-x cd RET

then enter a directory in the remote machine:

  /ssh:me@remote.host:~

  (you are prompted for a password, unless your
  ssh agent session is "open")

and then invoke a shell

  M-x shell

This shell will be on the remote host.

Likewise if you invoke a shell from a buffer which is editing
a file on the remote host (via Tramp).

Now the B part (i.e. what you most probably want):

  https://common-lisp.net/project/slime/doc/html/Connecting-to-a-remote-lisp.html#Connecting-to-a-remote-lisp

It seems to be possible to run the Slime (the Emacs side) <-> Swank
(the Lisp side) connection over the network. I'd definitely try this
first.

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlspBuYACgkQBcgs9XrR2kaD4gCdGbxbBVXR/vBA20MRdptIoDWb
cosAnjlQF6lt4ROkdcKm2WwXfruOZ3Xk
=ILwM
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ssh question...
  2018-06-19 13:17 ` Loris Bennett
@ 2018-06-19 23:44   ` Jean-Christophe Helary
  0 siblings, 0 replies; 5+ messages in thread
From: Jean-Christophe Helary @ 2018-06-19 23:44 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Loris, et all.

Thank you very much for the hints. I've installed ssh mode so I was able to access the machine directly from Emacs but Tramp seems like a really interesting device. I need to understand what it does to see how I can put that to use.

I had tried X11 (Xquartz) but the lack of integration in my mac setup made that less practical.

Thank you again.

Jean-Christophe 

> On Jun 19, 2018, at 22:17, Loris Bennett <loris.bennett@fu-berlin.de> wrote:
> 
> Jean-Christophe Helary <brandelune@gmail.com> writes:
> 
>> I'm wondering if the following is possible:
>> 
>> Use emacs from my Mac, and use picolisp as the lisp executable to run
>> with slime, but from my ssh'ed RaspberryPi...
>> 
>> Basically, can I call an executable from an ssh session to a different
>> machine ?
> 
> Not knowing anything about picolisp or slime, I don't really understand
> the question, but would a source block in an Org file on your Mac be of
> any help, e.g.
> 
>  #+BEGIN_SRC sh :dir /jc@raspberrypi:
>  emacs -batch -l ~/.emacs_minimal --eval=='(some-function)'
>  #+END_SRC
> 
> ?
> 
> Loris
> 
> -- 
> This signature is currently under construction.

Jean-Christophe Helary
-----------------------------------------------
http://mac4translators.blogspot.com @brandelune




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-19 23:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-19 11:26 ssh question Jean-Christophe Helary
2018-06-19 13:30 ` Van L
2018-06-19 13:36 ` tomas
     [not found] <mailman.2242.1529412530.1292.help-gnu-emacs@gnu.org>
2018-06-19 13:17 ` Loris Bennett
2018-06-19 23:44   ` Jean-Christophe Helary

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.