At Wed, 09 Oct 2002 13:17:56 +1000, Michael Lake wrote: > Voytek Eymont wrote: > > 1. > > if I get a 'problem' on a console, such as: > > > > I can't get out of an editor... > > and, after a while, I've tried every possible sequence I can think off, > > and, I'm still inside an editor.... > > > > how do I kill whatever on say console 2 ? > > 1. Open a new console or a terminal session. > 2. In that terminal type "ps ax" and look for a line that contains the > name of the editor program > lets says its vim [well if it was nedit or any other gui one would > know how to get out of it :-) ] > 3. note down the 'process number' of that program > 4. type "kill -9 process_number" > > One might also be able to type instead: > killall -9 vim > (if it was vim) > > Once you do this the offending ediitor should promptly vanish from that > terminal.
-9 will kill it "rudely" and should be used as a last resort. try a "normal" kill first (with no arg it will send SIGTERM). if that doesn't work (and it doesn't seem to on some shells), try a SIGHUP (-1), this will fake what happens when the process's terminal exits (you kill the ssh session, etc) and most editors will cope gracefully with that by autosaving files, etc. -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
