Re: getting current screen ID
On Tue, Jun 22, 2010 at 12:20 PM, Liam O'Toole <email@example.com> wrote:
> On 2010-06-22, Siju George <firstname.lastname@example.org> wrote:
>> 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.
thank a million :-)