[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: printing



Þann 15-Jan-98 skrifar tko@westgac3.dragon.com:
> Question for the C crowd: I have a program which I wish to print an ordered
> text file. In the Linux Programmers Guide, the printer chapter shows how to
> directly talk to the printer port. I'd like to be able to send the text to
> the
> appropriate printer filter (and spooler). How would one go about doing that?
> 
  Put the ordered file into a temporary one, and execl 'lpr' on that file,
removing it when 'lpr' is done... or open a pipe to 'lpr'.

----------------------------------------------------------------------------
Orn Einar Hansen                         oe.hansen@oehansen.pp.se
                                          oehansen@daimi.aau.dk
                                        voice+fax; +46 035 217194


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: