[BNM] [Brighton-lug-misc] Any gnu screen wizards?
Jay Caines-Gooby
jay at gooby.org
Tue Aug 21 20:04:01 BST 2007
On 8/21/07, Brett Parker <iDunno at sommitrealweird.co.uk> wrote:
> On Tue, Aug 21, 2007 at 04:33:13PM +0100, Jay Caines-Gooby wrote:
> > I use screen http://www.gnu.org/software/screen/ constantly; and I
> > pretty much use the same bunch of virtual terminals, running the same
> > stuff each time. Here's what I do if I have to start a screen from
> > fresh:
> >
> > cd to working folder, run screen. In the first terminal, run
> > ./script/server, name the terminal "mongrel". Add a new terminal, run
> > ./script/console, name the terminal "console", Add a new terminal run
> > mysql -u root some_db, name the terminal "mysql", etc
> >
> > Is there a screen recipe, or macro that can do this for me?
>
> Hows about just using a custom screenrc...
>
> something like:
> --- Begin file ---
> screen -t "mongrel" 0 /path/to/script/server
> screen -t "console" 1 /path/to/script/console
> screen -t "mysql" 2 mysql -u root some_db
> --- End file ---
>
> Then use:
> screen -c /path/to/screen/rc/file
Awesome. Thanks Brett! Just what I needed; I can use a different
custom .screenrc for different projects which is just what I need.
I've also put my standard "escape ^Gg" in the custom rc to trigger the
screen commands rather than the usual control-a (which I use with
crtl-e etc to navigate bash lines)
Cheers!
--
Jay Caines-Gooby
jay at gooby.org
+44 (0)7956 182625
skype:jaygooby
http://snipperoo.com
http://blog.snipperoo.com
http://payperwidget.com - widget distribution marketplace
More information about the BNMlist
mailing list. Powered by Wessex Networks