[SunHELP] stty erase

sunhelp at sunhelp.org sunhelp at sunhelp.org
Tue Mar 27 22:49:33 CST 2001


What about something in the users' .login, executing the 'tty' command,
parsing that output and then making a generic decision to set the TERM
environment variable and then executing the stty erase .... mess?  Keeping
it generic may work...


On Tue, 27 Mar 2001, Brian Hechinger wrote:

> > | Is there any way to determine a type of a machine I'm coming from (to put
> > | some "if - else" statement into .profile)?
> > | Or is there better solution?
> >
> > TYPE = `uname -s`
> > if [ "$TYPE" = "Linux" ]; then
> >    stty erase ^?
> > else
> >    stty erase ^H
> > fi
> 
> how does this work?  i don't think it does.  this works if they were sharing
> a home directory via NFS, but that's not what the question is about.  he needs
> to know where his user is telnetting from.
> 
> i don't have a solution off hand, but i'll think about it, that's a tricky one.
> 
> cheers,
> 
> -brian
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
> 




More information about the SunHELP mailing list