Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .