On Fri, Apr 21, 2006 at 05:15:10PM -0700, [EMAIL PROTECTED] wrote:
>
> > Ugur ASLAN <[EMAIL PROTECTED]> said
> > (on Sat, Apr 22, 2006 at 02:41:05AM +0300):
> > > I can't find a way to create all windows with given titles when
> > > starting a screen. And I can't make screen run a command in a
> > > specified window when creating it. Is it possible to write a bash
> > > script does the stuff I explained above at start?
> >
> > You can do this by creating a .screenrc file (in your home
> > directory) with the necessary screen commands in it, so all the
> > windows are created automatically when a screen session is started.
> >
> > For instance, these lines are taken from my .screenrc file:
> >
> > screen -t mail 2 mutt
> > screen -t xt 21 su - root -c "xtail /var/log"
> > screen -t bbc 30 lynx http://news.bbc.co.uk/1/low.html
> > screen -t irc 0 irc Mynick
>
> Maybe you also know how to do this so that, if the luser
> quits one of these, that window will stay open with a shell
> prompt..?
[...]
screen -t mail 2 sh -c 'mutt; exec "${SHELL-zsh}"'
or:
screen -t mail 2
at mail stuff "mutt\015"
(untested).
--
Stéphane
_______________________________________________
screen-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/screen-users