Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to list, add, edit, save file on a remote server

31 views
Skip to first unread message

Thorsten Jolitz

unread,
Aug 31, 2012, 7:16:01 PM8/31/12
to help-gn...@gnu.org

Hi List,

a very general question, with the hope to get some general advice what
route to take:

Suppose you are registered on a foreign server with the right to add and
edit files, and there is no Emacs running on that server. There exists
an Emacs mode for the type of files on the server, and you want to
access the server, list all files, select a file for editing, save
edits, or even add a new file - all from within Emacs, without ever
touching the webinterface.

How would you do that?
Via FTP? With Tramp? Would it be possible to run dired on the foreign
server?

I would need some hints where to start my own investigations.
TIA

--
cheers,
Thorsten



Barry Margolin

unread,
Aug 31, 2012, 7:53:31 PM8/31/12
to
In article <mailman.7889.13464547...@gnu.org>,
Tramp is one way. If you're using some flavor of Unix, another option is
FUSE with SSHFS or FTPFS -- this works independently of Emacs and makes
the remote filesystem appear to be in your local hierarchy.

--
Barry Margolin, bar...@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

Oleksandr Gavenko

unread,
Sep 1, 2012, 3:25:46 AM9/1/12
to help-gn...@gnu.org
On 2012-09-01, Thorsten Jolitz wrote:

> How would you do that?
> Via FTP? With Tramp? Would it be possible to run dired on the foreign
> server?

Tramp.

To login to server from Emacs:

/ssh:user@host:/etc/ TAB <-- completion work here, but you prompted for
password if don't setup RSA/DSA keys.

To list file on server:

/ssh:user@host:/etc/ RET

To open file from server:

/ssh:user@host:/home/user/.bashrc RET

Also M-x find-dired, rgrep, lgrep, compile - properly work with TRAMP (run
on remote server and show result in your Emacs).

Read manual: C-h i S tramp RET RET

--
Best regards!


Thorsten Jolitz

unread,
Sep 1, 2012, 8:18:30 AM9/1/12
to help-gn...@gnu.org
That looks easy enough, thanks.
And it would mean that there is no need for extra commands in my Emacs
mode (like M-x my-mode-list-list-wiki-files or so) because Tramp lets
you work on the server (almost) like on your machine - just open a file,
type M-x my-mode and start editing. Nice.

--
cheers,
Thorsten


Thorsten Jolitz

unread,
Sep 1, 2012, 8:19:43 AM9/1/12
to help-gn...@gnu.org
Barry Margolin <bar...@alum.mit.edu> writes:

>> How would you do that?
>> Via FTP? With Tramp? Would it be possible to run dired on the foreign
>> server?
>>
>> I would need some hints where to start my own investigations.
>> TIA
>
> Tramp is one way. If you're using some flavor of Unix, another option is
> FUSE with SSHFS or FTPFS -- this works independently of Emacs and makes
> the remote filesystem appear to be in your local hierarchy.

FUSE definitely looks interesting, thanks for the tip.

--
cheers,
Thorsten


Jeffery Rancier

unread,
Sep 4, 2012, 3:37:32 PM9/4/12
to Thorsten Jolitz, help-gn...@gnu.org
What's the foreign server's OS?

-----Original Message-----
From: help-gnu-emacs-bounces+jeffery.rancier=comtechm...@gnu.org [mailto:help-gnu-emacs-bounces+jeffery.rancier=comtechm...@gnu.org] On Behalf Of Thorsten Jolitz
Sent: Friday, August 31, 2012 7:16 PM
To: help-gn...@gnu.org
Subject: How to list, add, edit, save file on a remote server


Hi List,

a very general question, with the hope to get some general advice what route to take:

Suppose you are registered on a foreign server with the right to add and edit files, and there is no Emacs running on that server. There exists an Emacs mode for the type of files on the server, and you want to access the server, list all files, select a file for editing, save edits, or even add a new file - all from within Emacs, without ever touching the webinterface.

How would you do that?
Via FTP? With Tramp? Would it be possible to run dired on the foreign server?

I would need some hints where to start my own investigations.
TIA

--
cheers,
Thorsten




0 new messages