Unix Technical Forum

Avoiding a trashed /dev/tty

This is a discussion on Avoiding a trashed /dev/tty within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Every now and then, while running dosemu in a shell, I can run something that crashes dosemu in a ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 09:32 PM
Hufnus
 
Posts: n/a
Default Avoiding a trashed /dev/tty

Every now and then, while running dosemu in a shell, I can
run something that crashes dosemu in a way that freezes the
linux tty.

If I then restart the tty with a kill -9 <pid of hung
shell> from another shell, I do get a Login: prompt back, but
its a dead end!

Anything I type creates a blurb of high/low ascii characters
that are uninterpretable/unseen by the cmd processor (ie. one
can not escape to any other tty using alt-Fn or ctrl-c or
ctrl-alt-del, etc.).

I was wondering if something like embedding a reset command in
my /etc/profile would be the correct way to go?

TonyB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 09:33 PM
Kees Theunissen
 
Posts: n/a
Default Re: Avoiding a trashed /dev/tty

Hufnus wrote:
>
> Anything I type creates a blurb of high/low ascii characters
> that are uninterpretable/unseen by the cmd processor (ie. one
> can not escape to any other tty using alt-Fn or ctrl-c or
> ctrl-alt-del, etc.).
>
> I was wondering if something like embedding a reset command in
> my /etc/profile would be the correct way to go?


Did you try to just type: reset
Even if you can't read the command you type it should reset
the tty to a sane state, unless your key bindings have been
changed too by the crashed program.

Regards,

Kees.

--
Kees Theunissen.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com