Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


hows about | 20 comments | Create New Account
Click here to return to the 'hows about' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
hows about
Authored by: geohar on Nov 14, '02 05:55:54PM
hows about...
if (!~ $?SHOWED_SCREEN_MESSAGE ) then
        set detached_screens=`screen -list | sed -n 's/^(.*)(Detached)$/|1/gp'`
        if ( "$detached_screens" != "" ) then   
                echo    "+-----------------------------------------------+"
                echo    "| Detached screens are available:              |"
                echo -n "$detached_screens"
                echo    "               |"
                echo    "+-----------------------------------------------+"
        endif
        setenv SHOWED_SCREEN_MESSAGE true
endif
in your rc.mine script. Then you dont have to run screen as your shell, and (I'm a sucker for formatting - and unix arcane commands as you can see), the output will have nice | and | either side. You might have to tweak the tabs depending on your shell settings and what geeklog does to my submission:)

[ Reply to This | # ]