[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting up a screen session from a script?

From: Jonathan del Strother
Subject: Re: Setting up a screen session from a script?
Date: Fri, 17 Mar 2006 10:13:59 +0000

I'm not following you. In the bash script I use to set the environment up in the first place? If I run that in a screen session, I just get detached from screen. That's not very helpful... is it?

On 16 Mar 2006, at 23:53, Anthony Ettinger wrote:

try screen -D -r

On 3/16/06, Jonathan del Strother <address@hidden> wrote:
I'm trying to come up with a convenience-script to set up a Rails
editing environment using screen.  It looks something like this :

cd /Users/jon/Developer/Rails
screen -c /Users/jon/.screenrc_rails

So, that just changes into my Rails directory, then launches screen
with the custom config file .screenrc_rails. That file looks like this:

source /Users/jon/.screenrc
screen  -t Server               0       script/server
screen  -t Console      1       script/console
screen                          2

Which loads the usual .screenrc presets, then creates a few different
windows running server & console processes, and finally leaves me in
a blank window ready for me to do stuff.

That works great if I run the command from a screen-less bash
session.  However, if I'm already running within a screen session,
"screen -c /Users/jon/.screenrc_rails" just spawns a single new
window and ignores the config file.

Any suggestions?  What's the best way of getting this script to
produce the right setup, regardless of the environment it's initially
run in?


screen-users mailing list

Anthony Ettinger

Attachment: smime.p7s
Description: S/MIME cryptographic signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]