Date: Mon, 8 May 2023 09:13:51 -0400 From: "Dan Mahoney (Ports)" <freebsd@gushi.org> To: Andrea Venturoli <ml@netfence.it> Cc: freebsd-questions@freebsd.org Subject: Re: Check if running inside script Message-ID: <6EA6AE47-94CD-4C44-BFC9-2D69D85271F4@gushi.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
> On May 8, 2023, at 8:35 AM, Andrea Venturoli <ml@netfence.it> wrote: >=20 > Hello. >=20 > Is there a way a shell script of mine can check if running inside = sysutils/screen? Well, the environment variables=20 TERMCAP=3DSC|screen|VT 100/ANSI X3.64 virtual terminal[=E2=80=A6longer = output snipped] and=20 TERM=3Dscreen Might be a hint. -Dan=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6EA6AE47-94CD-4C44-BFC9-2D69D85271F4>