home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9522 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.1 KB  |  28 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gatech!bloom-beacon!bloom-picayune.mit.edu!daemon
  3. From: Kevin W. Hammond <hammond@kwhpc.caseng.com>
  4. Subject: Re: printing from IBM ProPrinter x24
  5. Message-ID: <1992Aug31.224656.21927@athena.mit.edu>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Reply-To: hammond@kwhpc.caseng.com
  8. Organization: The Internet
  9. Date: Mon, 31 Aug 1992 22:46:56 GMT
  10. Lines: 16
  11.  
  12. In regards to your question about LF's in Unix, there are a couple of options:
  13. a full blown lpr/lpd combiniation will pretty much take care of it for you,
  14. combined with a good printcap entry.  Another option is to run the code through
  15. a sed script that appends a CR to each line and then pipe the output of the
  16. sed script to the printer.
  17.  
  18. I wrote a program in C for my HP DeskJet that reads a file(s) or stdin and appends
  19. a CR to each line and then writes the data to /dev/lp and it works like a charm.
  20. Would have been quicker with a sed script, but I didn't have sed at the time :-(
  21.  
  22. -kwh-
  23. -- 
  24. Kevin W. Hammond
  25. hammond@kwhpc.caseng.com
  26.  
  27.   CASE Engineering * 575 W. Madison #1601 * Chicago, IL 60661 * (312)902-2161
  28.