[cups] lpstat sometimes has not up to date job hold/resume info

Stephan Graf st.graf at fz-juelich.de
Fri Apr 25 01:38:16 PDT 2014


Hi!

I have updated our print server to CUPS 1.7.2 because of the BUG FIX STR
#4401 (lp -H resume/hold not working).

This is working now, but there still seams to be a BUG (as marco
mentioned in his post for "STR #4401").

lpstat does not update its information about the job state after using
lp to hold or resume a job:

#### EXAMPLE START ####
[root at jsc-cups ~]# lpstat -l -o jscnews
jscnews-17746           zdv124         1557504   Fri Apr 25 10:27:45 2014
        Alerts: none
        queued for jscnews
[root at jsc-cups ~]# /usr/local/bin/lp -H hold -i 17746
[root at jsc-cups ~]# lpstat -l -o jscnews
jscnews-17746           zdv124         1557504   Fri Apr 25 10:27:45 2014
        Alerts: none
        queued for jscnews
#### EXAMPLE END ####

But the WEB GUI tells me, that the job is hold.

when I set the job in hold via WEB, the lpstat information is updated:
#### EXAMPLE START ####
[root at jsc-cups ~]# lpstat -l -o jscnews
jscnews-17746           zdv124         1557504   Fri Apr 25 10:27:45 2014
        Alerts: none
        queued for jscnews
# klick on "Hold Job"
[root at jsc-cups ~]# lpstat -l -o jscnews
jscnews-17746           zdv124         1557504   Fri Apr 25 10:27:45 2014
        Alerts: job-hold-until-specified
        queued for jscnews
# klick on "Release Job"
[root at jsc-cups ~]# lpstat -l -o jscnews
jscnews-17746           zdv124         1557504   Fri Apr 25 10:27:45 2014
        Alerts: none
        queued for jscnews
#### EXAMPLE END ####

Is there any other command to get the job-hold information?

Thanks,
Stephan


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------




More information about the cups mailing list