screen-users
[Top][All Lists]
Advanced

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

Re: reading an environment variable from screen [SOLVED]


From: Michael Grant
Subject: Re: reading an environment variable from screen [SOLVED]
Date: Thu, 17 Dec 2020 17:52:28 -0500

On Thu, Dec 17, 2020 at 10:46:43AM -0500, Michael Grant wrote:
> Slight change to my previous message:
> 
> 
> if [ -n "$STY" ]; then
>     function fix_ssh_auth_sock() {
>         screen -S $STY -X colon "msgwait 0\r"
>         export SSH_AUTH_SOCK=`screen -S $STY -Q echo '$SSH_AUTH_SOCK\r'`
>         screen -S $STY -X colon "msgwait 5\r"
>     }
>     export PROMPT_COMMAND=fix_ssh_auth_sock
> fi

Ok so in fact, this is not working.

I thought $SSH_AUTH_SOCK was different in each reattached screen
process but it's apparently not.  I ended up fooling myself, perhaps
when I started screen twice on the same machine.

I'm back to getting one of the other methods to work now.

Attachment: signature.asc
Description: PGP signature


reply via email to

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