From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: steven@lczmsoft.com (steven) Newsgroups: gmane.emacs.help Subject: Re: Cygwin/NTEmacs Printing Problem Date: 18 Nov 2003 00:02:20 -0800 Organization: http://groups.google.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <118cb3cc.0311180002.6ec51be3@posting.google.com> References: <118cb3cc.0311170102.5c06f4ca@posting.google.com> <3FB91FE9.6080402@yahoo.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1069143372 12632 80.91.224.253 (18 Nov 2003 08:16:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2003 08:16:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 18 09:16:09 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 1AM11t-0006gR-00 for ; Tue, 18 Nov 2003 09:16:09 +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 1AM1yb-0000Ui-E7 for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Nov 2003 04:16:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 218.13.193.183 Original-X-Trace: posting.google.com 1069142540 4414 127.0.0.1 (18 Nov 2003 08:02:20 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 18 Nov 2003 08:02:20 +0000 (UTC) Original-Xref: shelby.stanford.edu gnu.emacs.help:118400 Original-To: help-gnu-emacs@gnu.org 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:14341 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14341 Kevin Rodgers 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.