delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/16/08:55:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 16 Oct 2003 08:54:54 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Stephen Powell <stephen_powell AT optusnet DOT com DOT au>
cc: cygwin AT cygwin DOT com
Subject: Re: cron and hibernate
In-Reply-To: <uekxdvi4n.fsf@privacy.net>
Message-ID: <Pine.GSO.4.56.0310160850140.20462@slinky.cs.nyu.edu>
References: <3F8DF567 DOT 3040501 AT math DOT mun DOT ca> <uekxdvi4n DOT fsf AT privacy DOT net>
Importance: Normal
MIME-Version: 1.0

On Thu, 16 Oct 2003, Stephen Powell wrote:

> On Wed, 15 Oct 2003, ypeng AT math DOT mun DOT ca wrote:
>
> > I have been using Windows own TaskScheduler so far. What I don't
> > like it is that it cannot run jobs silently at background,
> > particularly when a job is a batch file or a bash script. Whenever
> > such a job is started, an annoying DOS window pops up and it also
> > occupies my taskbar.
>
> Running a Visual Basic program under wscript doesn't open a window.
>
> For example to run a sh script:
>
> --Begin P.vbs--
>
> Dim objShell, intErr
>
> Set objShell = CreateObject("Wscript.Shell")
> intErr = objShell.Run("C:\cygwin\bin\sh.exe /c/somePath/P.sh", 0, True)
> Wscript.Quit(intErr)
>
> --End P.vbs--
>
> and schedule it as
>
> "C:\WINDOWS\SYSTEM32\WSCRIPT.EXE //b c:\somePath\P.vbs"
>
> under the task scheduler.

How about "C:\Cygwin\usr\X11R6\bin\run.exe /c/somePath/P.sh"?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019