On Wed 29.09 22:18, Thilo Six wrote:
> I just wondering about how to start a screen session just right on
> Xterm start. When I put screen& in ~/.bashrc I get:
>
> Must be connected to a terminal.
Well, it matters how you start it, but if for example the xterm is
started in .xinitrc, you might use the -e option from xterm. See the
manpage. My .xinitrc has a line like this:
xterm -geometry 120x66+10+40 -e /usr/bin/screen -dR &
(formerly aterm ;-))
You don't want it in .bahrc since then every started bash would execute
screen, wouldn't make sense AFAICS.
Bert
--
gentoo-user@gentoo.org mailing list
> I just wondering about how to start a screen session just right on
> Xterm start. When I put screen& in ~/.bashrc I get:
>
> Must be connected to a terminal.
Well, it matters how you start it, but if for example the xterm is
started in .xinitrc, you might use the -e option from xterm. See the
manpage. My .xinitrc has a line like this:
xterm -geometry 120x66+10+40 -e /usr/bin/screen -dR &
(formerly aterm ;-))
You don't want it in .bahrc since then every started bash would execute
screen, wouldn't make sense AFAICS.
Bert
--
gentoo-user@gentoo.org mailing list