Problem: remote printing in UNIX SVR 4.0 1.0 i860
a) local system is BSD, remote system is SVR4:
The command
$ lpr -P_remote_system_ _file_
will send the job to the remote system. No local queue or log
files are kept. If you want to know about the status of your job
you have to issue
$ lpq -P_remote_system_
This will send a "send queue state" request to the remote system.
If your job is still queued you will see it; if it is not it is
expected to be done.
There are no problems in this direction.
b) local system is SVR4, remote system is BSD:
The command
$ lp -c -d_remote_system_ _file_
will send the job to the remote system. The job stays in the
local queue marked as "request accepted on remote system". A
$ lpstat -tl
will report "_remote_system is idle", "_jobid_ queued remotely".
No attempt is made to ask the remote system about this job. This
state will never change since lpsched/lpNet will never do
anything with this job. You can't even cancel it. You will have
to remove it by hand.
c) local system is SVR4, remote system is SVR4:
same problems as b)
--------------------------------------------------------------------
How is this supposed to work? I could think of two ways how this
could be done:
(1) lpsched/lpNet should wait for the completion of the job and
then cleanup their log files. It was easy to locate the code
where the RS_SENT bit is set. I was not able to find out when
this bit would be reset or the RS_PRINTED, RS_DONE or such
bits would be set so that the local queue would become empty.
There is no provision for a "job done" message in the (BSD-)
lpd-protocol. Thus "waiting" means that lpsched/lpNet will
have to send "send queue state" requests from time to time to
see if the job is done.
(2) lpsched/lpNet should delete all local queue entries when the
remote system has accepted the job. A call to lpstat would
cause lpsched/lpNet to transmit a "send queue state" request
to the remote system.
Is there anybody who has an idea how it SHOULD work? Or who
even got it working? Any help appreciated!
Thanks in advance,
Wolfgang
==================================================================
Name : Wolfgang Denk
Company : PCS GmbH, Pfaelzer-Wald-Str. 36, 8000 Munich W-Germany.
UUCP : ..[pyramid ;uunet!unido]!pcsbst!wd (PYRAMID PREFERRED!!)
###################################################################
#### The first thing we do is kill all the lawyers. ####
#### (Shakespeare. II Henry VI, Act IV, scene ii) ####
###################################################################