Anonymous_User Absent Member.
Absent Member.
834 views

iprint listjobs core dump

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.

Do you have any solution to this particular problem?


Regards,

Thomas Weber
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: iprint listjobs core dump

Thomas,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at
http://support.novell.com.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://support.novell.com/forums)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Product Support Forums Team
http://support.novell.com/forums/


0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.