Thursday, December 20, 2007

Restoring lost screen sockets

Do your screen sockets get nuked and you can't connect to your screen sessions? If something auto-cleans the /tmp dir, you may have seen this before. If you're like me, you end up with 10 or so shells with various programs running that you then have to follow the process tree to kill off. This is my only real (huge) frustration with screen. Well, here's ya go:

ps -x | grep SCREEN | awk '{print $1}' | xargs kill -CHLD

Enjoy!

Comments:
Heya n8, set this variable in you screen scripts, then you don't have to worry about your sockets in /tmp going boom :D

SCREENDIR=$HOME/.screen
 

Post a Comment



Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]