From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: printing remotely using ssh from within emacs
Date: Wed, 11 Feb 2004 13:02:16 -0700 [thread overview]
Message-ID: <402A8A48.9000205@yahoo.com> (raw)
In-Reply-To: mailman.2205.1076469681.928.help-gnu-emacs@gnu.org
Joe Corneli wrote:
> I would have thought that adding these lines
>
> '(lpr-command "cat - | ssh jcorneli@fakehost.edu lpr")
> '(printer-name "fakeprinter")
>
> to my custom set variables might enable me to print emacs buffers on
> my remote printer using ps-print-buffer. But I seem to have guessed
> wrong. Does anyone know the correct way to set this up?
Contrary to its name, but explained in its doc string, lpr-command is
not a shell command but an executable program (run by
call-process-region). So your best bet is to put that pipe line into a
shell script, and point lpr-command to the script.
And setting printer-name just causes (concat lpr-printer-switch
printer-name) to be appended to the arguments passed to lpr-command, so
you should just include that in the script.
Finally "cat - | ssh ..." is equivalent to "ssh ...".
--
Kevin Rodgers
next parent reply other threads:[~2004-02-11 20:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2205.1076469681.928.help-gnu-emacs@gnu.org>
2004-02-11 20:02 ` Kevin Rodgers [this message]
2004-02-11 3:20 printing remotely using ssh from within emacs Joe Corneli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=402A8A48.9000205@yahoo.com \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).