Hi Michael!

Michael Albinus <[email protected]> writes:

> Thierry Volpiatto <[email protected]> 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 "/ssh:remote.host:"))
>     (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
`start-file-process'.

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 pgp.mit.edu --recv-keys 59F29997 

_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to