[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: run start-file-process in tramp
From: |
Michael Albinus |
Subject: |
Re: run start-file-process in tramp |
Date: |
Mon, 22 Nov 2010 21:24:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Thierry Volpiatto <address@hidden> writes:
> Hi,
Hi,
> it seem it is possible to run start-file-process on tramp filenames.
> I would like to run start-file-process ==> grep on tramp filenames.
> If it is possible, can you give me link to documentation on how to do
> that, and possibly hints.
Both "M-x find-grep-dired" and "M-x find-grep" shall work with remote
directories out-of-the-box.
If you want to call `start-file-process' directly, you must point
`default-directory' to the remote host:
(let ((default-directory "/ssh:remote.host:"))
(start-file-process "grep" (get-buffer-create "*grep*")
"/bin/sh" "-c" "grep -e thierry *"))
> Thanks.
Best regards, Michael.