Re: auto-signon
Ed Carp <[email protected]> Thu, 28 May 2015 01:05:45 -0700
| Newsgroups | gmane.comp.emulators.tn5250 |
|---|---|
| Organization | midrange.com |
| Message-ID | <[email protected]> |
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. -- This is the Linux 5250 Development Project (LINUX5250) mailing list To post a message email: LINUX5250-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/linux5250 or email: LINUX5250-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/linux5250.