This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

question with cygwin.bat and Windows Scheduler


Hi...tried for a long, long time trying to make this work to no avail...and
did not find help online.

Using Windows XP, I am running a bash script via the windows task scheduler,
which is calling Cygwin.bat ...The command being tasked is:

C:\cygwin\Cygwin.bat /myfolder/myscript.sh


The tasking works fine, and my sript runs great, however since the task is
to run every 10 minutes, I am trying to have it so the DOS/Cygwin window
does not pop up every time the scripts executes  (it runs completely
"silent" or at worst, is the window is minimized).

I have attempted the "run a shortcut to the batch file" method, but
scheduler will not execute the tasks properly for the .lnk

I have been working on this for a long time...any help would be appreciated.

BTW, I can succesfully get the window to minimize, but can't get it to close
automatically.  I have tried everything from modifying the batch file with
exit commands, to using cmd /C start /min with an @Exit, but nothing will
get the minimized window to close.

Thank you,
Mike


-- 
View this message in context: http://old.nabble.com/question-with-cygwin.bat-and-Windows-Scheduler-tp27094829p27094829.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]