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