Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <009101c253df$f4e4c140$0600a8c0@JIMGEORGE> From: "Jim George" To: References: Subject: Re: printing from within Cygwin Date: Wed, 4 Sep 2002 07:54:45 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Thanks Igor, everything is working well now. Jim ----- Original Message ----- From: "Igor Pechtchanski" To: "Jim George" Cc: Sent: Saturday, August 31, 2002 8:42 PM Subject: Re: printing from within Cygwin > Jim, > > Looks like you don't have the mswinpr2 device in your ghostscript > installation... I'm not sure how to check or remedy that. I've installed > ghostscript 7.03 for windows, and it worked for me. Check your > ghostscript version... > > One more thing I forgot to mention in the original message is that I use > the windows version of ghostscript, and have a symbolic link from > /cygdrive/c/gs/gs7.03/bin/gswin32c.exe to /usr/local/bin/gs. I haven't > tested the script with the Cygwin version of ghostscript, sorry. :-( > Igor > > On Sat, 31 Aug 2002, Jim George wrote: > > > Igor, > > > > sorry to reply to Fred's email but I lost your original post. > > > > There must be something wrong with my installation as I get the > > following on stdout when executing lpr-mine (BTW PRINTER is > > defined) > > > > Error: /undefined in --get-- > > Operand stack: > > --nostringval-- NoCancel true OutputFile > > (\\\\spool\\\\\\gateway\\epson) > > UserSettings --dict:1/1(L)-- --dict:86/86(G)-- (mswinpr2) > > Execution stack: > > %interp_exit > > .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 > > %stopped_push --nostringval-- --nostringval-- --nostringval-- false > > 1 %stopped_push > > .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 > > topped_push --nostringval-- --nostringval-- --nostringval-- --nost > > ringval-- > > Dictionary stack: > > --dict:1081/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)-- > > Current allocation mode is local > > Last OS error: 2 > > GNU Ghostscript 7.05: Unrecoverable error, exit code 1 > > > > Can you offer any help? > > > > Thanks, > > > > Jim > > ----- Original Message ----- > > From: > > To: > > Sent: Saturday, August 31, 2002 3:24 AM > > Subject: Re: printing from within Cygwin > > > > > > > Igor: > > > > > > Thanks for all the info! I'll review it all next week after the holiday. > > > > > > I see you work at Watson labs,... do you by any chance know my brother > > > (David N. Smith) ??? > > > > > > Thanks again! > > > > > > Fred > > > > > > > > > > > > > > > Igor Pechtchanski on 08/30/2002 05:59:39 PM > > > > > > Please respond to cygwin AT cygwin DOT com > > > > > > To: Fred Smith/Computrition > > > cc: cygwin AT cygwin DOT com > > > Subject: Re: printing from within Cygwin > > > > > > > > > > > > > > > On Fri, 30 Aug 2002 Fred_Smith AT computrition DOT com wrote: > > > > Trying to figure out how to print from a Cywin (console) app. > > > > > > > > Porting a Linux app to cygwin. On Linux it uses popen() to pipe output > > to > > > a > > > > shellscript which in turn cats its input to lpr (it may do other things, > > > > and may transform the data, but that's the ultimate goal). > > > > > > > > trying to figure out how to do something akin to that under cygwin. > > > > > > > > Invoking "lpr " at the command prompt comes back with an error > > > > message: > > > > > > > > can't open 'prn' for writing. > > > > > > > > Advice would be appreciated. (I hope you're not going to tell me I need > > > to > > > > learn all about the innards of windoze printing!) > > > > > > > > Thanks! > > > > Fred > > > No, learning the innards of "windoze" printing is not necessary. Learning > > > ghostscript options, however, wouldn't hurt. ;-) > > > I have been using the attached script for a while. It works on my current > > > system (Win2k with gs7.03 installed). Note the disabled support for > > > gsprint -- I couldn't get it to work properly. If anyone can get the > > > gsprint part to work, please let me know. > > > I also had to tweak the standard gslp.ps that comes with ghostscript to > > > allow printing standard input properly (modified script attached). My > > > copy of gslp.ps is in /usr/local/bin, and the script expects to find it > > > there. > > > The -P option and the $PRINTER variable will recognize windows printer > > > names (spaces and all). 'ware of the backslashes... Use the -Q option to > > > select the printer using the windows printer selection dialog. > > > Igor > > > -- > > > http://cs.nyu.edu/~pechtcha/ > > > |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu > > > ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com > > > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski > > > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! > > > It took the computational power of three Commodore 64s to fly to the moon. > > > It takes a 486 to run Windows 95. Something is wrong here. -- SC sig file > > > > > > > > > > > > -------------------------------------------------------------------------- -- > > ---- > > > > > > > -- > > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > > Bug reporting: http://cygwin.com/bugs.html > > > Documentation: http://cygwin.com/docs.html > > > FAQ: http://cygwin.com/faq/ > > > > > > -- > > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > > Bug reporting: http://cygwin.com/bugs.html > > Documentation: http://cygwin.com/docs.html > > FAQ: http://cygwin.com/faq/ > > > > > > -- > http://cs.nyu.edu/~pechtcha/ > |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu > ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! > > It took the computational power of three Commodore 64s to fly to the moon. > It takes a 486 to run Windows 95. Something is wrong here. -- SC sig file > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/