[OS X Emacs] Opening files with Tramp with command line ?

Olivier Marti olivier.marti at lsce.ipsl.fr
Fri May 7 05:59:52 EDT 2010


Hello,

I whish I could open Tramp from the command line. Something like "aquamacs /sshx:user at host:file". But it don't works :

marti at Spip-~:aquamacs /sshx:mercure:.bash_profile
touch: /sshx:mercure:.bash_profile: Permission denied
The file /sshx:mercure:.bash_profile does not exist.
marti at Spip-~:rm: /sshx:mercure:.bash_profile: No such file or directory

marti at Spip-~:open -a /Applications/Aquamacs /sshx:mercure:.bash_profile
The file /sshx:mercure:.bash_profile does not exist.
marti at Spip-~:

Any idea ?

A solution could be to use emacsclient :

emacsclient /sshx:mercure:.bash_profile 
Waiting for Emacs...

it works !

But ...

The ultimate goal is to send the command from the remote host, i.e. :

mercure: ssh spip /usr/bin/emacsclient /sshx:mercure:.bash_profile 
Warning: untrusted X11 forwarding setup failed: xauth key data not generated
Warning: No xauth data; using fake authentication data for X11 forwarding.
/usr/bin/emacsclient: connect: Connection refused
/usr/bin/emacsclient: No socket or alternate editor.  Please use:

        --socket-name
        --server-file      (or environment variable EMACS_SERVER_FILE)
        --alternate-editor (or environment variable ALTERNATE_EDITOR)

I cannot make emacsclient works from a remote host. 

Olivier

-- 
Olivier Marti  mailto:olivier.marti [ad] lsce.ipsl.fr
Laboratoire des Sciences du Climat et de l'Environnement
Institut Pierre Simon Laplace
Laboratoire CEA-CNRS-UVSQ  -  UMR 8212
Tel : +33 1 69 08 77 27 - Mob : +33 6 45 36 43 74
<http://www.lsce.ipsl.fr/Pisp/56/olivier.marti.html>








More information about the MacOSX-Emacs mailing list