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

Re: getting current screen ID



On Tue, Jun 22, 2010 at 12:20 PM, Liam O'Toole <liam.p.otoole@gmail.com> wrote:
> 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.
>

thank a million :-)

--Siju


Reply to: