Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2023 12:16:09 +0200
From:      Yuri <yuri@aetern.org>
To:        questions@freebsd.org
Subject:   Re: Check if running inside script
Message-ID:  <f34196e0-5716-43b2-1f08-7c03eb48e4da@aetern.org>
In-Reply-To: <6b3f5a7f-e0cb-bb6f-38d5-050348d76387@netfence.it>
References:  <6b3f5a7f-e0cb-bb6f-38d5-050348d76387@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Andrea Venturoli wrote:
> Hello.
> 
> Is there a way a shell script of mine can check if running inside
> sysutils/screen?

Answers on stackexchange (I'm using tmux so didn't check) mention that
screen sets STY env var, check it.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f34196e0-5716-43b2-1f08-7c03eb48e4da>