On 03/05/2015 01:58 PM, Scott Klement wrote:

Running something from the startup rc scripts never worked because they
are not associated with a terminal, so I couldn't do anything that
required any fancy terminal I/O.

Yup, I think this is the problem.

So what I did instead on linux was make my own copy of 'getty' (the
program that starts the ttys) that I modified to run my copy of tn5250,
and then configured my system to start the terminals using my special
copy of getty. This worked very well, and if the terminal session got
killed somehow, the init process would automatically restart it, so that
was helpful, too.

You can also do that on most versions of Linux. For example, to run a
custom program on tty1, change /etc/init/tty1.conf like so:

Comment out this line:

#exec /sbin/getty -8 38400 tty1

And replace with something more appropriate:

exec /usr/local/bin/QSYS/signon tty1

On my system, signon looks like a AS/400 signon screen and handles
logins the same way - but you get the idea.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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

This mailing list archive is Copyright 1997-2021 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.