Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2023 20:34:11 +1000
From:      Korolev Sergey <serejk@febras.net>
To:        Yuri <yuri@aetern.org>
Cc:        questions@freebsd.org
Subject:   Re: Check if running inside script
Message-ID:  <5F4B47E8-E3A0-479D-B0E1-732AFBB659E0@febras.net>
In-Reply-To: <f34196e0-5716-43b2-1f08-7c03eb48e4da@aetern.org>
References:  <6b3f5a7f-e0cb-bb6f-38d5-050348d76387@netfence.it> <f34196e0-5716-43b2-1f08-7c03eb48e4da@aetern.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_DB6C3D00-C26D-4F71-A126-99EE6EA0B73A
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

echo $TERM

> On 8 Jun 2023, at 20:16, Yuri <yuri@aetern.org> wrote:
> 
> 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.
> 


--Apple-Mail=_DB6C3D00-C26D-4F71-A126-99EE6EA0B73A
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">echo $TERM<br class=""><div style=""><br class=""><blockquote type="cite" class=""><div class="">On 8 Jun 2023, at 20:16, Yuri &lt;<a href="mailto:yuri@aetern.org" class="">yuri@aetern.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Andrea Venturoli wrote:<br class=""><blockquote type="cite" class="">Hello.<br class=""><br class="">Is there a way a shell script of mine can check if running inside<br class="">sysutils/screen?<br class=""></blockquote><br class="">Answers on stackexchange (I'm using tmux so didn't check) mention that<br class="">screen sets STY env var, check it.<br class=""><br class=""></div></div></blockquote></div><br class=""></body></html>
--Apple-Mail=_DB6C3D00-C26D-4F71-A126-99EE6EA0B73A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5F4B47E8-E3A0-479D-B0E1-732AFBB659E0>