I had to give tn5250 the -P parameter:
tn5250 -p -P "scs2ascii | rpl -P lm615@S1" -slm651 as1
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".
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)?
-------------------------------
Claudio Succa
[EMAIL PROTECTED]
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 [EMAIL PROTECTED]
> | To subscribe to this list send email to [EMAIL PROTECTED]
> | To unsubscribe from this list send email to
[EMAIL PROTECTED]
> | Questions should be directed to the list owner/operator:
[EMAIL PROTECTED]
> +---
>
>
+---
| This is the LINUX5250 Mailing List!
| To submit a new message, send your mail to [EMAIL PROTECTED]
| To subscribe to this list send email to [EMAIL PROTECTED]
| To unsubscribe from this list send email to [EMAIL PROTECTED]
| Questions should be directed to the list owner/operator: [EMAIL PROTECTED]
+---