title: How do you run a command in iTerm when it launches?
body: <p>I'm working on configuring the iTerm terminal emulator for the Mac to do what I want. Apparently everything is done through what they call "bookmarks." OK, fine. I'm trying to create a bookmark that will open a tab, cd to a certain Rails project, and run the command <code>script/server</code>. What's supposed to happen is that this will launch the server daemon ("Mongrel") and I'll see the output scrolling by every time I look at that tab.</p>
  
  <p>In the config dialog, under "command" I put <code>script/server</code> and under "working dir" I put the project directory.</p>
  
  <p>What happens is that the tab appears for 1/10th of a second then vanishes.</p>
  
  <p>Recalling a similar problem I had with the Unix screen command, I tried putting a "command" of <code>bash -c 'script/server'</code> but the result was identical.</p>