Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know that most people don't bother with things like screen anymore, but I happen to really like it, even in this GUI day and age. I still do most of my development from a BASH prompt, so it's extremely useful to me.

What I'm wondering is what the easiest way is to start an instance of screen (stored in a shell script or .screenrc or somewhere else) so that it starts up with set commands already running in set windows. For example, I use a django test server, so I'd like one window to come up running "python manage.py runserver" and another blank, waiting for commands. The man page is wholly indecipherable. These old unix utilities can do quite nearly everything, so I'm sure this is possible, but I can't for the life of me figure out how. I

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You can add to your .screenrc lines like this:

screen -t title command to execute

Each line as above will create a window executing the specified command inside screen.

share|improve this answer
    
That's exactly what I was looking for. thanks! –  stillinbeta Mar 18 '10 at 3:41
    
an answer on another question shows a good example .screenrc snippet. apparently you can include the window number between the title and command, and use select to pick which one to show on startup. –  quack quixote May 5 '10 at 9:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.