From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.help Subject: Re: Cygwin/NTEmacs Printing Problem Date: Mon, 17 Nov 2003 21:08:16 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <9681-Mon17Nov2003210816+0200-eliz@elta.co.il> References: <118cb3cc.0311170102.5c06f4ca@posting.google.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1069102884 7786 80.91.224.253 (17 Nov 2003 21:01:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2003 21:01:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 22:01:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ALqUr-0000HC-00 for ; Mon, 17 Nov 2003 22:01:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALrS9-00064Y-D8 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2003 17:02:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ALrRl-000641-Qa for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 17:02:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ALrRF-0005sv-23 for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 17:02:12 -0500 Original-Received: from [192.114.186.23] (helo=aragorn.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALrLq-0004ko-R7 for help-gnu-emacs@gnu.org; Mon, 17 Nov 2003 16:56:07 -0500 Original-Received: from zaretski (pns03-196-160.inter.net.il [80.230.196.160]) by aragorn.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id BWZ80663; Mon, 17 Nov 2003 21:07:54 +0200 (IST) Original-To: help-gnu-emacs@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <118cb3cc.0311170102.5c06f4ca@posting.google.com> (steven@lczmsoft.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14331 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14331 > From: steven@lczmsoft.com (steven) > Newsgroups: gnu.emacs.help > Date: 17 Nov 2003 01:02:50 -0800 > > (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. If all you need is to get the PS output on a file, you don't need all this trickery: when ps-print-* commands are invoked with a numeric argument, they automatically prompt for a file name and leave the PS stuff on that file. > But, when I invoked the 'ps-print-xxx' in NTEmacs, I always got > following error: > "searching for program: no such file or directory, cat2file" I suspect that the value of PATH as known to Emacs does not include the directory where you put cat2file.