home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11592 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.7 KB  |  35 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!darwin.sura.net!wupost!gumby!destroyer!ubc-cs!newsserver.sfu.ca!langer
  3. From: langer@monashee.sfu.ca (Steve Langer)
  4. Subject: lp/lpr printer hacks
  5. Message-ID: <1992Jul29.174504.24633@sfu.ca>
  6. Keywords:  lp lpr
  7. Sender: news@sfu.ca
  8. Organization: Simon Fraser University, Burnaby, B.C., Canada
  9. Date: Wed, 29 Jul 1992 17:45:04 GMT
  10. Lines: 23
  11.  
  12. In <howarth.712364458@proto> howarth@rice.edu (Jack W. Howarth) writes:
  13. |              I am trying to discover if I can start up a lpd daemon to
  14. | print to the same printer that already is being used by lp. The reason is
  15. | that we have lp set up so that NFS can allow us to print remotely to the
  16. | printer through lp from another Iris. However, no PC shareware supports
  17. | lp for printing from a PC to a unix box; only lpr. Thus, I would like to
  18. | have both lp and lpr directed at the same printing but not crashing on me
  19. | if they fight over it. Is this possible or not?
  20.  
  21.    I've been wondering the same thing, since we'll be wanting to let the
  22. NeXT across the hall talk to the printer connected to an Indigo. I've come
  23. up with the following hack, but I don't know if it will be useful for your
  24. PC connection.
  25.   What I did is to create a dummy user, called "printer", who has /usr/bin/lp
  26. for a shell, and no password. (Please tell me if this is a horrible
  27. security risk!) Then I can print from a remote machine that doesn't have lp
  28. by running
  29.    /usr/bsd/rsh printhost -l printer - < file_to_be_printed
  30. where printhost is the machine with the printer. If you then alias "lpr"
  31. to this command, the users won't ever know the difference, unless of course
  32. they try to use a different printer...
  33.  
  34.           -- Steve
  35.