[unix-pc.general] /usr/lib/accept on 3b1?

sbw@tapest.UUCP (Steve Wampler) (04/11/90)

I'm trying to add several logical printers to my unix-pc,
all running on a HP-laserjet+.  I have the interface files
created, have lpadmin'ed the printers, enable'd them, etc.

However, I cannot get either 'accept' or 'reject' to do
anything with any printer (including the two printers I
have running (one on a serial line, the other on the
parallel port).  both programs just return with no
messages.

lpstat shows the new printers as not accepting anything,
with the message (from qstatus) 'new destination'.

the man page for accept shows it taking a single argument,
but a 'strings' of /usr/bin/lpsetup shows the UA as calling
accept with two arguments - (note - going through the UA works
when setting up a printer - but doesn't know anything about
setting up multiple logical printers to a single port.)

So, does anyone know how to correctly call 'accept'?
(I.e., what the two arguments are?)
Information about calling reject would also be nice, since
I'd like to be able to call the commands that come with the
system!
-- 
Steve Wampler	{...!arizona!naucse!tapest!sbw}
	        {...!ditka!tapest!sbw}

lenny@icus.ICUS.COM (Lenny Tropiano) (04/12/90)

In article <228@tapest.UUCP> sbw@tapest.UUCP (Steve Wampler) writes:
|>I'm trying to add several logical printers to my unix-pc,
[...]
|>However, I cannot get either 'accept' or 'reject' to do
|>anything with any printer (including the two printers I
|>have running (one on a serial line, the other on the
|>parallel port).  both programs just return with no
|>messages.
|>
All you need to do is "su" to user lp.  I don't know why root won't
work, but that's just a small problem.  Once you are user "lp" it will
work as expected.

-Lenny
-- 
| Lenny Tropiano           ICUS Software Systems        lenny@icus.ICUS.COM |
| {ames,pacbell,decuac,sbcs,hombre,rayssd}!icus!lenny   attmail!icus!lenny  |
+------ ICUS Software Systems --  PO Box 1;  Islip Terrace, NY  11752 ------+

dave) (04/12/90)

In article <228@tapest.UUCP>, sbw@tapest.UUCP (Steve Wampler) writes:
> I'm trying to add several logical printers to my unix-pc,
	etc. etc. etc.

> However, I cannot get either 'accept' or 'reject' to do
> anything with any printer.
	etc. etc. etc.

> So, does anyone know how to correctly call 'accept'?
> (I.e., what the two arguments are?)

First of all, you only need to be concerned with 1 argument, the name of the
printer.  If you say that UA is using 2 args I believe you, but you only need
1.  Anyway, the first printer that you setup on a 3B1 must be done through UA.
If you don't, the scheduler will never start.  After you lpadmin and enable
your printer, you then do an accept.  'accept' MUST be run by the 'lp' login!!
Root won't work, install won't work, ONLY lp will work.  So login as 'root' do
an 'su - lp' and at the '$' type: /usr/lib/accept printername.  That's all
there is to it.  (actually I have 11, yup 11, logical printers for my 1
physical printer).

DAS
-- 
David Snyder                            Home:  dave@das13.UUCP (das13!dave)
                                        Work:  das@trac2000.UUCP (trac2000!das)

The ideal situation is to have real computing power close at hand - right at    home. Something that dims streetlights and shrinks the picture on the neighbors TV when you crank it up.