timm / crusty

Automatically exported from code.google.com/p/crusty
0 stars 0 forks source link

Exit option for crusty's menu #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not positive I have seen this in any of the issues at all but I've been
working on a way to add a quit option to the menu. `screen -t quit 9
./screen_quit`.  screen_quit is a separate sh file that kills the screen
session.  It's done collecting any pids for screen, like so `screen -wipe |
grep '[0-9]\.pts' | awk '{print $1}'. (regex needs some cleaning up)  Any
other cleanup for 'quit' can be added as well to the script.

I think this is a better idea than having to C-z :quit each time and also
its incorporated into the menu schema.

Does anybody think this is a good or bad idea?

Derek Perriero

Original issue reported on code.google.com by derek.pe...@gmail.com on 30 Jan 2007 at 6:40

GoogleCodeExporter commented 9 years ago
Alrighty, I currently have an option to quit in my version of crusty as option 
9 in
the menu.  Currently it works by detaching the current screen and killing the
detached screen pid.  Also, all applications under that screen are ended as 
well.

I'm attaching the current bash script that will be executed by by option 9.
Give me feedback on its structure, security, etc.

And if its good we can commit it for the next revision.

Thanks,
Derek

Original comment by derek.pe...@gmail.com on 31 Jan 2007 at 6:08

Attachments:

GoogleCodeExporter commented 9 years ago
Nice piece of bashing. 

But if N people have detached screens, will this script try and detach them all?

Original comment by menzies....@gmail.com on 4 Feb 2007 at 1:02