Hi,

i need to get a list of current print jobs from within a shell script.
So i tried using "iprntcmd --listjobs" as told in the iPrint linux manual.
If the printer doesn't have any current job, the command returns:

/opt/novell/iprint/bin/iprntcmd --listjobs ipp://iprint/ipp/pverwaltung1
iprntcmd v04.15.00
Listing jobs for printer ipp://iprint/ipp/pverwaltung1.


If there are jobs it fails:

/opt/novell/iprint/bin/iprntcmd --listjobs ipp://iprint/ipp/pverwaltung1
iprntcmd v04.15.00
Listing jobs for printer ipp://iprint/ipp/pverwaltung1.
Segmentation fault (core dumped)

Here are the last view lines of an strace output:
strace /opt/novell/iprint/bin/iprntcmd --listjobs
ipp://iprint/ipp/pverwaltung1

connect(3, {sa_family=AF_INET, sin_port=htons(631),
sin_addr=inet_addr("192.168.1.100")}, 16) = 0
send(3, "POST /ipp/pverwaltung3 HTTP/1.1\r"..., 33, 0) = 33
send(3, "Content-Length: 318\r\n", 21, 0) = 21
send(3, "Content-Type: application/ipp\r\n", 31, 0) = 31
send(3, "Host: iprint\r\n", 14, 0) = 14
send(3, "User-Agent: Novell iPrint Client"..., 54, 0) = 54
send(3, "\r\n", 2, 0) = 2
time(NULL) = 1145359564
send(3, "\1\1\0\n\0\0\0\4", 8, 0) = 8
time(NULL) = 1145359564
send(3, "\1G\0\22attributes-charset\0\5utf-8", 29, 0) = 29
time(NULL) = 1145359564
send(3, "H\0\33attributes-natural-language\0\2"..., 34, 0) = 34
time(NULL) = 1145359564
send(3, "B\0\24requesting-user-name\0\4root", 29, 0) = 29
time(NULL) = 1145359564
send(3, "E\0\vprinter-uri\0\35ipp://iprint/ipp"..., 45, 0) = 45
time(NULL) = 1145359564
send(3, "D\0\24requested-attributes\0\6job-idD"..., 172, 0) = 172
time(NULL) = 1145359564
send(3, "\3", 1, 0) = 1
recv(3, "HTTP/1.1 200 OK\r\nDate: Tue, 18 A"..., 2048, 0) = 437
time(NULL) = 1145359564
time(NULL) = 1145359564
time(NULL) = 1145359564
time(NULL) = 1145359564
time(NULL) = 1145359564
time(NULL) = 1145359564
time(NULL) = 1145359564
time(NULL) = 1145359564
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++

I can confirm this error with both iPrint Client 1.01 and 4.15 on
OpenSuse 10, and 2 OES SP1 boxes.

Using the command on a windows client works fine.

Regards,

Thomas Weber