× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Printing (Seg. fault)
  • From: mmadore <mmadore@xxxxxxxxx>
  • Date: Wed, 9 Feb 2000 11:49:51 -0800 (PST)

Hi,

On Wed, 9 Feb 2000, Jason M. Felice wrote:

> > As per your case as1 is the nikname of my AS/400. lm615 is the name of the 
> > printer for Linux lpd as well as for AS/400 print session. 
> > 
> > Note that I had to modify printsession.c line 94 about 
> > (tn5250_print_session_main_loop):
> > 
> >    if (strcmp(responsecode, "I902" ))
> > 
> > in
> > 
> >   if ( !strcmp(responsecode, "I902" ))
> > 
> > In my case (tn5250-0.15.3), before the modification, the program exited 
> > with the message "Could not establish printer session".
> 
> The logic seems correct.  Please insert the following line:
> 
> TN5250_LOG (("Response Code: %s\n", responsecode));
> 
> above the strcmp, then start a print session with the -t slime.log option,
> then post what the returned reponse code was.

The second line is the correct one.  Strcmp returns 0 when it matches.
I902 is the return code for success.  Jason, could you make that change?
I promise I'll read that CVS documentation soon. ;-)

Mike

+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to LINUX5250@midrange.com.
| To subscribe to this list send email to LINUX5250-SUB@midrange.com.
| To unsubscribe from this list send email to LINUX5250-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.