From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28240 invoked by alias); 2 Aug 2017 16:06:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 28221 invoked by uid 89); 2 Aug 2017 16:06:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY,KAM_OTHER_BAD_TLD autolearn=no version=3.3.2 spammy=Hx-languages-length:571, UD:bash.exe, bash.exe, bashexe X-HELO: blaine.gmane.org Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 02 Aug 2017 16:06:39 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dcwAB-0007LK-1d for cygwin@cygwin.com; Wed, 02 Aug 2017 18:06:23 +0200 To: cygwin@cygwin.com From: Oleksandr Gavenko Subject: Hiding console when running Cygwin utility from Task Scheduler. Date: Wed, 02 Aug 2017 16:06:00 -0000 Message-ID: <86o9ryymx5.fsf@gavenkoa.example.com> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) X-IsSubscribed: yes X-SW-Source: 2017-08/txt/msg00034.txt.bz2 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? -- http://defun.work/ -- 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