[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detect whether attached or detached from screen session?
From: |
Trent W. Buck |
Subject: |
Re: Detect whether attached or detached from screen session? |
Date: |
Tue, 14 Oct 2008 15:32:10 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
"Sven Hazejager"
<address@hidden> writes:
> I'm using screen to keep some applications open over a remote SSH
> connection that sometimes is killed. What I would like to do, is to
> somehow find out whether I am logged in (attached) or disconnected
> from the screen session.
>
> Reason is that I want procmail to send incoming mail to my BlackBerry
> if I'm disconnected, but NOT do that when I'm SSH-ing into my Pine
> session.
I don't know how to achieve that, but perhaps there's a different
approach to the problem -- such as always forwarding all mail to an IMAP
server that you can access from both the blackberry and from pine.