[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run start-file-process in tramp

From: Thierry Volpiatto
Subject: Re: run start-file-process in tramp
Date: Mon, 22 Nov 2010 22:20:47 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.90 (gnu/linux)

Hi Michael!

Michael Albinus <address@hidden> writes:

> 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.

Yes but i need to call grep from program.(anything)

> If you want to call `start-file-process' directly, you must point
> `default-directory' to the remote host:
>   (let ((default-directory "/"))
>     (start-file-process "grep" (get-buffer-create "*grep*")
>                         "/bin/sh" "-c" "grep -e thierry *"))

It's exactly what i need, this great example should go in info manual of

BTW is start-file-process-shell-command supported by tramp in the same way?
(Don't see the tramp-sh-handler-* or i missed it)

Thanks a lot for your always clear and quick answer ;-).

A+ Thierry
Get my Gnupg key:
gpg --keyserver --recv-keys 59F29997 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]