bug-bash
[Top][All Lists]
Advanced

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

Re: failure to login on serial console


From: Alain D D Williams
Subject: Re: failure to login on serial console
Date: Wed, 3 Feb 2021 17:30:34 +0000
User-agent: Mutt/1.10.1 (2018-07-13)

On Wed, Feb 03, 2021 at 12:07:38PM -0500, Chet Ramey wrote:
> So your shell is not running in the same process group as the terminal,
> and has no access to read from its controlling terminal.

Thanks ... you gave me a clue to fix this. Not ideal, but it works.

if [[ -n $SHELL && -z $SSH_AGENT_PID && -z $DISPLAY ]]
then    [[ $( tty ) != /dev/tty* ]] && exec -l ssh-agent bash --login
        ssh-agent bash --login
        exit
fi

-- 
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT 
Lecturer.
+44 (0) 787 668 0256  https://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information: 
https://www.phcomp.co.uk/Contact.html
#include <std_disclaimer.h>



reply via email to

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