12 Apr 12:59
manpages from remote machines
From: Eduardo Ochs <eduardoochs@...>
Subject: manpages from remote machines
Newsgroups: gmane.emacs.eev.devel
Date: 2008-04-12 11:00:41 GMT
Subject: manpages from remote machines
Newsgroups: gmane.emacs.eev.devel
Date: 2008-04-12 11:00:41 GMT
Hi Xavier,
> Is there an easy way to the equivalent (find-man "blah") remotely
> instead of the current machine ?
>
> For the e-script needs I mentionned earlier, I typed my commands
> through eepitch-shell on a HP-UX commands which had different
> commands than the one I am using here.
>
> For example, (find-man "newfs") could not work on my notebook
> whereas it could have been on the remote host.
You can use something like this...
(defun find-netbsdman (manpage &rest rest)
(let ((buffername (format "*netbsdman: %s*" manpage))
(format-string "ssh edrx <at> caramelo \"sh -c 'PAGER=cat man %s'\"")
(command (format format-string manpage)))
(apply 'find-eoutput-reuse
buffername
`(progn (insert (find-sh0 ,command))
(Man-fontify-manpage))
rest)))
Note that the name of the remote machine is fixed ("caramelo"),
and that you will need to be able to run commands on the remote
mahine using ssh without it asking for a password... this is what
I use to make ssh copy the adequate authorization keys:
# (find-man "1 ssh-copy-id")
(Continue reading)
RSS Feed