delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/12/09:36:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 12 May 2003 09:35:58 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: gilles civario <civario AT mimosa DOT ceng DOT cea DOT fr>
cc: cygwin AT cygwin DOT com
Subject: Re: a2ps and printer
In-Reply-To: <3EBF6259.4090003@mimosa.ceng.cea.fr>
Message-ID: <Pine.GSO.4.44.0305120926500.393-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 12 May 2003, gilles civario wrote:

> Hello.
>
> I've just fond the a2ps-4.2.1 pakage on my favorite repository and
> I've tested it. As a fan of a2ps for printing source listings, I'd
> already installed the version 4.13 on my machine. And with an very
> dirty hack, I managed to use a samba-shared network printer with it.
> If somebody cares about it, here is a diff between the initial version
> of the file <root>/etc/a2ps-site.cfg and my new one :
>
> $ diff a2ps-site.cfg.init a2ps-site.cfg
> 41c41
> < DefaultPrinter: | #{lp.default}
> ---
> > DefaultPrinter: | cat > /tmp/foo.ps ;cd /tmp; /cygdrive/c/WINNT/system32/lpr -S mimosa -P glaieul foo.ps ; rm foo.ps
> 48c48
> < UnknownPrinter: | #{lp} #o
> ---
> > UnknownPrinter: | cat > /tmp/foo.ps ;cd /tmp; /cygdrive/c/WINNT/system32/lpr -S mimosa -P #o foo.ps ; rm foo.ps
>
> Where mimosa is the name of the network print server and glaieul is
> the name of the default printer.
> I suppose there is a more elegant way to do this, but this is the only
> one I've found.
>
> Regards.
> Gilles.

Gilles,

Any particular reason "a2ps -P //mimosa/glaieul" doesn't work?  Something
like that (with a possible substitution of '/' by '\') worked for me at
some point.  Unfortunately, I'm not able to verify this just now, but if
it doesn't work for you, I can send a follow-up later with the exact
invocation (when I'm at a machine that has a shared printer)...
	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!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019