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!

This entry was posted in uncategorized. Bookmark the permalink.

One Response to Restoring lost screen sockets

  1. tsaavik says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>