Web lists-archives.com

Re: Hiding console when running Cygwin utility from Task Scheduler.




Greetings, Oleksandr Gavenko!

> I prepared backup task in Bash script and added task to run it in Windows Task
> Scheduler:

>   Executable: c:\opt\cygwin\bin\bash.exe
>   Params: c:\home\backup\backup-job.bash

> Each time job run I see console screen. 'procmon' shown that it is::

>   \??\C:\Windows\system32\conhost.exe 0xffffffff -ForceV1

> Seems each Cygwin utility brings console into foreground. I also tested with:

>   c:\opt\cygwin\bin\yes.exe

> How can I prevent console to be shown when bash started from Task Scheduler?

Do not start tasks as current user. Or use wrapper that prevent console
window creation in first place.


-- 
With best regards,
Andrey Repin
Monday, August 7, 2017 19:51:43

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