From: Andrey Repin <anrdaemon@yandex.ru>
To: Oleksandr Gavenko <gavenkoa@gmail.com>, cygwin@cygwin.com
Subject: Re: Hiding console when running Cygwin utility from Task Scheduler.
Date: Mon, 07 Aug 2017 17:05:00 -0000 [thread overview]
Message-ID: <1685771259.20170807195235@yandex.ru> (raw)
In-Reply-To: <86o9ryymx5.fsf@gavenkoa.example.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
next prev parent reply other threads:[~2017-08-07 17:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 16:06 Oleksandr Gavenko
2017-08-02 19:21 ` Brian Inglis
2017-08-02 23:41 ` Oleksandr Gavenko
2017-08-03 5:21 ` Brian Inglis
2017-08-03 11:43 ` Oleksandr Gavenko
2017-08-03 13:05 ` cyg Simple
2017-08-03 14:09 ` Oleksandr Gavenko
2017-08-07 17:05 ` Andrey Repin [this message]
2017-08-07 17:36 ` Oleksandr Gavenko
2017-08-08 0:05 ` Andrey Repin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1685771259.20170807195235@yandex.ru \
--to=anrdaemon@yandex.ru \
--cc=cygwin@cygwin.com \
--cc=gavenkoa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).