Re: auto-signon

Bart Hoen <[email protected]> Sat, 7 Mar 2015 22:07:32 +0100
Newsgroups gmane.comp.emulators.tn5250
Message-ID <[email protected]>
Hi Scott,
thanks for your reply, looks to me you are a few levels upwith that custom copy of Getty... I like especially the "if the terminal session got  killed somehow, the init process would automatically restart it" part of the whole as that is what I intend to do as well.
For now I managed to do it after login via ~/.bashr which is not exactly as I wished but for this stage sufficient.
I have to find my way around debian/raspberry a little, maybe later will be able to go more complex.
Bart


> Date: Thu, 5 Mar 2015 15:58:17 -0600
> From: [email protected]
> To: linux5250-Zwy7GipZuJhWk0Htik3J/[email protected]
> Subject: Re: [LINUX5250] auto-signon
> 
> Hi Bart,
> 
> Hmmm... not familiar with Raspberry Pi (I think I said that yesterday, 
> too...)
> 
> But, years ago I did something similar on RedHat. I also have done this 
> quite a bit on FreeBSD (which isn't Linux, but is similar in many ways.)
> 
> 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.
> 
> 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.
> 
> On FreeBSD, the getty program was much more configurable, I could add an 
> entry to my /etc/gettytab file that runs a shell script when the 
> terminal is opened... and so I made that script start up tn5250, then 
> adjusted /etc/ttys to make it run the script on certain terminals.
> 
> Not sure if any of that applies to Raspberry Pi, of course...  but 
> thought it might be worth mentioning...
> 
> 
> On 3/5/2015 12:57 PM, Bart Hoen wrote:
> > Hi once more,
> > I am trying start the app and auto-login before the login prompt but I can't get it done somehow. I don't have any GUI installed I would just like to boot into 5250 in the before beging logging in.
> > I meanwhile tried various methods :
> > /etc/rc.local/etc/init.d/
> > None works, the scripts run fine when ran after login though so there are no errors or anything. When I replace the 5250 command to something simple like ping it works fine ? It wil start pinging at the login prompt.
> > What am I missing ?
> > Bart 		 	   		
> >
> -- 
> 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.
> 
 		 	   		  
-- 
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.