[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Script knowing if in screen / screen window correponding to tty
From: |
Sami Samhuri |
Subject: |
Re: Script knowing if in screen / screen window correponding to tty |
Date: |
Fri, 9 Jul 2004 12:55:16 -0700 |
User-agent: |
Mutt/1.5.6i |
* It was Fri, Jul 09, 2004 at 12:16:43PM -0400 when Buddy Burden said:
> Guys,
>
> Been using screen for many years now and find it indispensible. I have
> two minor questions (let me know if you think I should have broken this
> up into two separate posts).
>
> 1) Is there a way for a script to tell whether it's running inside
> screen? I have a script that really should be run inside screen. I
> don't want to just fire up a screen automatically, because the person
> might already be running it. But the person forgets a lot too, so it
> would be nice to be able to flash a reminder to them, e.g. "Not running
> inside screen; continue anyway?". Is this possible?
In addition to what Jason said, within screen the environment variable
TERM is set to "screen".
--
Sami Samhuri
pgp3qiCfBFJhb.pgp
Description: PGP signature
- Re: Script knowing if in screen / screen window correponding to tty, (continued)
- Re: Script knowing if in screen / screen window correponding to tty, Buddy Burden, 2004/07/09
- Re: Script knowing if in screen / screen window correponding to tty, Jason White, 2004/07/11
- Re: Script knowing if in screen / screen window correponding to tty, Jason White, 2004/07/11
- Re: Script knowing if in screen / screen window correponding to tty, Buddy Burden, 2004/07/12
- Re: Script knowing if in screen / screen window correponding to tty, Jason White, 2004/07/12
- Re: Script knowing if in screen / screen window correponding to tty, Buddy Burden, 2004/07/13
Re: Script knowing if in screen / screen window correponding to tty, Shawn McMahon, 2004/07/09
Re: Script knowing if in screen / screen window correponding to tty,
Sami Samhuri <=
Re: Script knowing if in screen / screen window correponding to tty, Thomas Köhler, 2004/07/11