[Samba] Printing to file

Joel Hammer Joel at HammersHome.com
Thu Sep 19 10:17:00 GMT 2002


Well, the printcap below,

and the print filter:
#!/bin/bash
ps2pdf -

and a file
/var/spool/lpd/text/textprint

with chmod 777

works fine for me to convert postscrpt to pdf and save it to the file.

You may have to mess with std in and out with the ps2pdf command.

So, what was the problem again?
Joel


On Thu, Sep 19, 2002 at 05:41:03AM -0400, vlie0180 at planet.nl wrote:
> 
>     The file needs to be converted to pdf (I use ps2pdf)
>     Greetz Maxor
> 
> >Joel
> >On Wed, Sep 18, 2002 at 08:53:50PM +0200, Sander van Vliet wrote:
> >> The print jobs arrive in PostScript. (apple laserwriter)
> >> 
> >> Greetz Maxor
> >> 
> >> ----- Original Message -----
> >> From: "Joel Hammer" <Joel at HammersHome.com>
> >> To: "Sander van Vliet" <maxor at tref.nl>; <samba at lists.samba.org>
> >> Sent: Wednesday, September 18, 2002 6:13 PM
> >> Subject: Re: [Samba] Printing to file
> >> 
> >> 
> >> > I use lprng.
> >> >
> >> > text:\
> >> >         :sd=/var/spool/lpd/text:\
> >> >         mx#0:\
> >> >         :lp=/var/spool/lpd/text/textprint:\
> >> >         :if=/var/spool/lpd/text/filter:\
> >> > :sh:
> >> >
> >> > This works for me.
> >> > Make sure the file is permissive. Your printer daemon has to be able to
> >> > print to it.
> >> > The filter is a question. Since you aren't printing to a printer, you
> >> woon't
> >> > use the same filter you would use for a real print queue. What format will
> >> > the print job arrive in? What format do you want it to be once it is in
> >> the
> >> > file?
> >> > Run  checkpc -f to make sure things look right.
> >> > Don't forget, after you make these changes, you have to restart lpd.
> >> > Joel
> >> >
> >> >
> >> > On Wed, Sep 18, 2002 at 02:10:06PM +0200, Sander van Vliet wrote:
> >> > > Hello does anyone have an example printcap config to print to a file?
> >> > > I need this because I use the pdfprint script posted here earlier but if
> >> you print to that printer the program that prints hangs until the program
> >> finishes.
> >> > >
> >> > > TIA Maxor
> >> > --
> >> > To unsubscribe from this list go to the following URL and read the
> >> > instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list