Re: "setup-x86 --quiet-mode" problems
On 2018-04-22 07:51, Andrey Repin wrote: >> On Thu 2018-04-19 (17:28), Brian Inglis wrote: >>> cygstart .../setup-x86 --quiet-mode ... && sleep 1 && kill -9 $$ $PPID >> Ahh... cygstart does the trick! :-) >> I was not aware of this helper program. Good to know! > In this specific case, it is better to use > cmd /C START "" "$( cygpath -ma ".\\setup-${ARCH}.exe" )" -O -s > "${MIRROR%%/}/" $KEYS "$@" & > So that you detach completely from the cygwin process tree. That's exactly what cygstart does: $ cygstart .../setup $ ps -W | egrep 'COMMAND|setup' PID PPID PGID WINPID TTY UIDSTIME COMMAND 7080 0 07080 ? 0 10:10:48 C:\...\setup-x86_64.exe as I use it in a script which kills Cygwin processes after launching setup. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: "setup-x86 --quiet-mode" problems
Greetings, Ulli Horlacher! > On Thu 2018-04-19 (17:28), Brian Inglis wrote: >> cygstart .../setup-x86 --quiet-mode ... && sleep 1 && kill -9 $$ $PPID > Ahh... cygstart does the trick! :-) > I was not aware of this helper program. Good to know! In this specific case, it is better to use cmd /C START "" "$( cygpath -ma ".\\setup-${ARCH}.exe" )" -O -s "${MIRROR%%/}/" $KEYS "$@" & So that you detach completely from the cygwin process tree. -- With best regards, Andrey Repin Sunday, April 22, 2018 16:43:58 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: "setup-x86 --quiet-mode" problems
On Thu 2018-04-19 (17:28), Brian Inglis wrote: > cygstart .../setup-x86 --quiet-mode ... && sleep 1 && kill -9 $$ $PPID Ahh... cygstart does the trick! :-) I was not aware of this helper program. Good to know! -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:-- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: "setup-x86 --quiet-mode" problems
On 2018-04-19 10:31, Ulli Horlacher wrote: > I have an update script which calls "setup-x86 --quiet-mode". > So far, this works great, but now it tries to install a new mintty.exe, > but one mintty still running (where I started setup-x86), so setup-x86 > kills this process... and setup-x86.exe is killed, too, which resulted in > a damaged cygwin installation :-( > I was able to fix it by running setup-x86.exe via Windows Explorer (pu!). > How can I avoid this kind of problem in the future? > I tried it with: > setup-x86 --quiet-mode & > sleep 1 > kill -9 $PPID > But setup-x86 was killed again, too. cygstart .../setup-x86 --quiet-mode ... && sleep 1 && kill -9 $$ $PPID -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: "setup-x86 --quiet-mode" problems
> On Apr 19, 2018, at 11:31 AM, Ulli Horlacher wrote: > > I have an update script which calls "setup-x86 --quiet-mode". > So far, this works great, but now it tries to install a new mintty.exe, > but one mintty still running (where I started setup-x86), so setup-x86 > kills this process... and setup-x86.exe is killed, too, which resulted in > a damaged cygwin installation :-( > > I was able to fix it by running setup-x86.exe via Windows Explorer (pu!). > > How can I avoid this kind of problem in the future? > > I tried it with: > > setup-x86 --quiet-mode & > sleep 1 > kill -9 $PPID > > But setup-x86 was killed again, too. The way you fixed it already — don't run setup under mintty (or dash or …). Setup is not a cygwin program (it's not linked to cygwin1.dll). It's safest to have all of your cygwin processes stopped when you run setup, anyway, to prevent problems just like this. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
"setup-x86 --quiet-mode" problems
I have an update script which calls "setup-x86 --quiet-mode". So far, this works great, but now it tries to install a new mintty.exe, but one mintty still running (where I started setup-x86), so setup-x86 kills this process... and setup-x86.exe is killed, too, which resulted in a damaged cygwin installation :-( I was able to fix it by running setup-x86.exe via Windows Explorer (pu!). How can I avoid this kind of problem in the future? I tried it with: setup-x86 --quiet-mode & sleep 1 kill -9 $PPID But setup-x86 was killed again, too. -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlac...@tik.uni-stuttgart.de Allmandring 30aTel:++49-711-68565868 70569 Stuttgart (Germany) WWW:http://www.tik.uni-stuttgart.de/ REF:<20180419163128.ga7...@rus.uni-stuttgart.de> -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple