Screenie

Want to organize your command line screen session or sessions better? Want to have a separate screen session for every task that you do? Want something that will organize you in general? This GMN has the perfect tip for you. It is a tiny script called screenie.

Code Listing 4.1: Getting Screenie

$ emerge screenie

Start by running it.

Code Listing 4.2: Launching screenie

$ screenie

You should see the following:

Code Listing 4.3: Adding a job


SCREENIE - terminal screen-session handler
written by Marc O. Gloor <mgloor&fhzh.ch>

a) add job
q) quit

select:

Lets add a job called "Systems". Once you hit a, enter the name. Hit enter unless you know the process id of existing screen sessions.

Lets add a second job called "Email". Now you should see:

Code Listing 4.4: Listing jobs


SCREENIE - terminal screen-session handler
written by Marc O. Gloor <mgloor&fhzh.ch>

1) 15468.Systems
2) 15504.Email

a) add job
q) quit

select:

You now have two screen sessions that you can go into and out of. Select one of the sessions. You are now inside of screen where you can do whatever you usually do.

Note: See the tips and tricks describing screen.

To go to another screen session, press CTRL+a+d (or however you usually exit your screen sessions). You should be back to the screenie menu and ready to choose to go to another screen session.

One use of screenie might be to have a screen session for every task and for every machine you have access to making multi-tasking much more organized. This should also make it much easier to start working again after a long break.