Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

domm (4030)

domm
  (email not shown publicly)
http://domm.plix.at/

Just in case you like to know, I'm currently full-time father of 2 kids, half-time Perl hacker, sort-of DJ, bicyclist, no longer dreadlocked and 33 years old

I'm also head of Vienna.pm [pm.org], maintainer of the CPANTS [perl.org] project, member of the TPF Grants Commitee [perlfoundation.org] and the YAPC Europe Foundation [yapceurope.org].

I've got stuff on CPAN [cpan.org], held various talks [domm.plix.at] and organised YAPC::Europe 2007 in Vienna [yapceurope.org].

Journal of domm (4030)

Monday December 04, 2006
04:12 AM

new screen trick

[ #31798 ]

I just discovered a new screen trick.

When starting a new screen session, you can give it a name using -S:
screen -S yapc

When re-attaching later, you can specify the name of the session you want:
screen -r yapc

That's very handy, because I used to have something like 10 open 'windows' in a screen, and if I switched from working on one project (eg $dayjob) to anotherone (eg CPANTS), I had to chdir in quite a lot windows.

Now I have several screen session, one for each project, all chdired into the right directory before starting the session (which makes C-A C-c start new windows in this directory):

domm@3u ~ $ screen -ls
There are screens on:
        6338.yapc       (Detached)
        5457.veri       (Detached)
        6426.generic    (Attached)

Now, when I switch projects, I just do C-A d (detach) and then screen -l NAME and everything is nice and dandy.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I'll have to try this. I have up to 20 windows, and when I get over 10, I have to type C-a ' to get the double-digit ones.

    By having a number of different sessions which I detach and attach, I can get that number down below 10, and thus will just have to type C-a .