[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getting current screen ID



On 2010-06-22, Siju George <sgeorge.ml@gmail.com> wrote:
> Hi,
>
> debianCRG50:~# screen -ls
> There are screens on:
>         2282.pts-7.debian  (Attached)
>         1400.pts-2.debian (Attached)
>         1162.pts-0.debian  (Attached)
>         954.pts-2.debian   (Attached)
>         1428.pts-5.debian  (Attached)
> 5 Sockets in /var/run/screen/S-root.
>
> Out of these how do i find the ID of the screen I am currently logged
> in and seeing the above output?
>

The environment variable STY will tell you.

-- 
Liam O'Toole
Cork, Ireland



Reply to: