help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] possible to see remaining seconds of $TMOUT?


From: Chet Ramey
Subject: Re: [Help-bash] possible to see remaining seconds of $TMOUT?
Date: Thu, 08 Nov 2012 15:54:54 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

On 11/8/12 1:09 PM, Doug Hunley wrote:
> I couldn't find any useful info about this on the FAQ or using Google, if
> it is documented somewhere please point me to it and accept my humble
> apologies.
> 
> We currently have TMOUT set to 300 seconds to auto-logout shells when
> people go idle after 5 minutes and it works great. Recently though, I had
> cause to wonder 'how many of those 300 seconds are left' and I couldn't
> figure out how to determine that. Ideally, I'd like to add it to my GNU
> screen statusline as a visual reminder that 'hey, you're going to get
> logged out in NN seconds'. Is this doable?

Since this is implemented using alarm(3), and the information about when
the alarm was set is not exported, there's no current way to do it.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]