This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Hiding console when running Cygwin utility from Task Scheduler.
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Oleksandr Gavenko <gavenkoa at gmail dot com>, cygwin at cygwin dot com
- Date: Mon, 7 Aug 2017 19:52:35 +0300
- Subject: Re: Hiding console when running Cygwin utility from Task Scheduler.
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp2p.mail.yandex.net; dkim=pass header.i=@yandex.ru
- References: <86o9ryymx5.fsf@gavenkoa.example.com>
- Reply-to: cygwin at cygwin dot com
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