Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hash screen >/dev/null 2>&1 && {
- if [ ! -e ~/.hushlogin ]; then
- if [ ! -z "$STY" ]; then
- cat /etc/motd
- echo "[ screen $STY, window $WINDOW ]"
- elif [ ! -z "$(tty | grep -v pts)" ]; then
- screen -dRR $(echo "$(tty).$(hostname)" | sed -e 's:^/dev/::')
- fi
- DEAD_SCREENS=$(screen -ls | grep "Dead" | tr -s '\t' ' ' | cut -d' ' -f2 | tr '\n' ' ')
- if [ ! -z "$DEAD_SCREENS" ]; then
- echo "[ There are dead screens: $DEAD_SCREENS ]"
- fi
- unset DEAD_SCREENS
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement