GPG_TTY=`tty` export GPG_TTY #echo UPDATESTARTUPTTY | gpg-connect-agent gpg-connect-agent updatestartuptty /bye >/dev/null