unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: steven@lczmsoft.com (steven)
Subject: Re: Cygwin/NTEmacs Printing Problem
Date: 18 Nov 2003 00:02:20 -0800	[thread overview]
Message-ID: <118cb3cc.0311180002.6ec51be3@posting.google.com> (raw)
In-Reply-To: 3FB91FE9.6080402@yahoo.com

Kevin Rodgers <ihs_4664@yahoo.com> wrote in message news:<3FB91FE9.6080402@yahoo.com>...
> steven wrote:
> 
> > in the .emacs, I wrote:
> > 
> >   (setq lpr-command "cat2file")
> > 
> > under cygwin/bash:
> >   $ cat 
> >   #!/usr/bin/bash
> >   TMPFILE=`mktemp -t emacs.print.XXXXX` || exit 1
> >   cat >$TMPFILE
> > 
> > I dit this because I hope the 'ps-print-xxx' command can generate and
> > save a ps file for me.
> > 
> > But, when I invoked the 'ps-print-xxx' in NTEmacs, I always got
> > following error:
> >   "searching for program: no such file or directory, cat2file"
> 
> Is the cat2file script executable?  Is it in your PATH?  Is the Emacs
> exec-path variable correctly initialized from your PATH environment
> variable?

M-x shell

$ which cat2file
/usr/local/bin/cat2file
$ echo "hello" | cat2file


So, you see, under the shell prompt of NTEmacs, I can run the cat2file script.

  parent reply	other threads:[~2003-11-18  8:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-17  9:02 Cygwin/NTEmacs Printing Problem steven
2003-11-17 19:08 ` Eli Zaretskii
2003-11-17 19:22 ` Kevin Rodgers
2003-11-18  5:47   ` Eli Zaretskii
2003-11-18  8:02   ` steven [this message]
     [not found] ` <mailman.179.1069106535.399.help-gnu-emacs@gnu.org>
2003-11-18  9:01   ` steven
2003-11-18  9:40     ` Eli Zaretskii
     [not found]     ` <mailman.208.1069152033.399.help-gnu-emacs@gnu.org>
2003-11-18 23:31       ` Jason Rumney

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=118cb3cc.0311180002.6ec51be3@posting.google.com \
    --to=steven@lczmsoft.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).