This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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  UID    STIME COMMAND
7080     0     0    7080  ?      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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]