× 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: "Jason M. Felice" <jasonf@xxxxxxxxxxxxxx>
  • Date: Wed, 9 Feb 2000 11:30:08 -0500

On Tue, Feb 08, 2000 at 04:32:47PM +0100, Claudio Succa wrote:
> I had to give tn5250 the -P parameter:
> 
> tn5250 -p -P "scs2ascii | rpl -P lm615@S1" -slm651 as1

I have modified the source for the next release - the -p option will no longer
be required, as it is implied by the necessary '-P' option - actually the -p
option will no longer exist.

> 
> 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.
> 
> I noted that the same line is present in 0.15.6 version so I guess that 
> the program is ok. Can anyone explain me why in my case that modification 
> was needed (OS is V4R3)?
>

I don't know how the print session is supposed to work, but it's possible that
there is more than one possible positive response, and that your system is
sending one different from the one that we expect.
 
> -------------------------------
> Claudio Succa
> 
> claudio@pertel.it
> www.pertel.it
> 
> > Hello!
> > 
> > Why can't I start a printer session?
> > I typed: tn5250 -p -s PEDIAP01 as4 (where as4 is a nikname of the AS/400
> > IP address)
> > And it write it:
> > "-(NULL)-
> > Segmentation fault"
> > I never probed the printer session because we have until now only an OS
> > V3R7, but now we get an V4R4. And if I know it right, it can send back
> > the printing stream over TCP/IP, don't?
> > 
> > I attached a strace file (who know, perhaps it can help something)
> > 
> > Anyone can help me?
> > Please help me!
> > 
> > --
> > Bye!    --    Benci   --
> > +---
> > | 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
> > +---
> > 
> > 
> 
> +---
> | 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
> +---

+---
| 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.