For anyone who likes to try: Windows server 2019 x64 User: domain\jenkins$ is a gmsa
Here is my working SSH invocation, after adding my user to the local administrators - will update later to use --no-admin: $ ssh oss-cygwin-jenkins-node -l 'jenkins$' -t 'c:\inst\setup-x86_64.exe -q -f -R c:\cygwin64 -l c:\inst -P libgcrypt-devel,asciidoc,cygport,gcc-g++,libpoppler-cpp-devel,libpcre-devel,dejagnu,texlive-collection-latex' Starting cygwin install, version 2.908 User has backup/restore rights Current Directory: c:\inst root: c:\cygwin64 system Selected local directory: c:\inst net: Preconfig site: https://mirrors.kernel.org/sourceware/cygwin/ solving: 8 tasks, update: yes, use test packages: no solving: 0 tasks, update: no, use test packages: no Augmented Transaction List: is empty Changing gid back to original running: c:\cygwin64\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash" running: c:\cygwin64\bin\dash.exe "/etc/postinstall/0p_texlive_prep.dash" running: c:\cygwin64\bin\dash.exe "/etc/postinstall/0p_update-info-dir.dash" running: c:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_adwaita-icon-theme.sh" running: c:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_desktop-file-utils.sh" running: c:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_fontconfig_cache_1.sh" running: c:\cygwin64\bin\dash.exe "/etc/postinstall/zp_fontconfig_dtd.dash" running: c:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_glib2.0.sh" running: c:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_hicolor-icon-theme.sh" running: c:\cygwin64\bin\dash.exe "/etc/postinstall/zp_man-db-update-index.dash" running: c:\cygwin64\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_shared-mime-info.sh" running: c:\cygwin64\bin\dash.exe "/etc/postinstall/zp_texlive_finish.dash" Ending cygwin install Connection to oss-cygwin-jenkins-node closed. $ > -----Original Message----- > From: Jason Pyeron > Sent: Monday, May 17, 2021 5:13 PM > > > -----Original Message----- > > From: Jon Turney > > Sent: Monday, May 17, 2021 4:41 PM > > > > On 17/05/2021 20:59, Jason Pyeron wrote: > > > When I run > > > > > > c:\inst\setup-x86_64.exe -q -f -R c:\cygwin64 -l c:\inst -P libgcrypt- > > devel,asciidoc,cygport,gcc-g++,libpoppler-cpp-devel,libpcre-devel,dejagnu,texlive- > > collection-latex > > > > > > or > > > > > > c:\inst\setup-x86_64.exe -qvW -f -R c:\cygwin64 -l c:\inst -P libgcrypt- > > devel,asciidoc,cygport,gcc-g++,libpoppler-cpp-devel,libpcre-devel,dejagnu,texlive- > > collection-latex > > > > > > the prompt returns immediately. This is causing problems when it is run > > > from a > (windows) > > ssh session. > > > > --wait should be doing what you want. > > -W is the same, no impact. > > > > > I recently discovered that if the invoking shell is PowerShell, then > > because setup is a GUI application, PowerShell doesn't wait, so maybe > > that's what's happening here... > > > > Fits my observations. > https://superuser.com/questions/908664/have-the-command-prompt- > launch-an-application-like-notepad-and-block-until-it-is helps. > > start /b /wait c:\inst\setup-x86_64.exe -q -f -R c:\cygwin64 -l c:\inst -P > libgcrypt- > devel,asciidoc,cygport,gcc-g++,libpoppler-cpp-devel,libpcre-devel,dejagnu,texlive- > collection-latex > > from cmd.exe use start /b /wait > > /B Start application without creating a new window. The application has ^C > handling > ignored. Unless the application enables ^C processing, ^Break is the only way > to interrupt > the application. > > /WAIT Start application and wait for it to terminate. > > My real issue was the user was not an admin - doh! -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple