You are not logged in.

#1 2012-11-14 07:52:20

hafron
Member
Registered: 2012-07-03
Posts: 5

[screen] Autostart in .zshrc

Hi,
I trying to configure gnu screen utility to run automaticly after I run any urxvt. My first idea was to add the following line to .zshrc:
exec screen
And it working good however I must to see and confirm screen's welcome screen. It was annoying but after several minutes of searching I found(in the arch wiki) how to turn off welcome message. So to my .screenrc I added:
startup_message off
But now when I trying to run urxvt i see nothing more than flashing cursor at the top left corner. When I trying to write someting it disapears after each flash. It looks like some infinite loop for me but I have no idea what I'm doing wrong. Have anyone had similar issue or have an idea what can I doing wrong?

Offline

#2 2012-11-14 09:22:57

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: [screen] Autostart in .zshrc

You start urxvt, it starts zsh, zsh starts screen, screen starts zsh, zsh starts screen, and so on.

Offline

#3 2012-11-14 09:30:42

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,725
Website

Re: [screen] Autostart in .zshrc

I recommend that you use tmux in place of screen. Not only is it actively maintained (unlike screen), it has an inbuilt check to prevent this sort of loop happening:

$ tmux
sessions should be nested with care, unset $TMUX to force

You should still fix your config files though.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB