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]

How to run a cygwin command from the window scheduler


I need to schedule a job and it is not worth installing cron on our W2K3
hosts for just for this one backup application.

I have a name.sh script that if I run in a bash window it runs fine.

In a W2K3 command prompt window I have tried

	C:\cygwin\usr\bin\bash.exe -c "\local\adminscripts\name.sh"

And I get 

	bash-3.15$

If I type exit at the command prompt then the script runs bin at the command
prompt mode.

So the question is how do you start a unix shell script from the window
command prompt.

Robert



_____________________________________________________________________
Robert P. McGraw, Jr.
Manager, Computer System                 EMAIL: rmcgraw@purdue.edu
Purdue University                         ROOM: MATH-807
Department of Mathematics                PHONE: (765) 494-6055
150 N. University Street                   FAX: (419) 821-0540
West Lafayette, IN 47907-2067            


Attachment: smime.p7s
Description: S/MIME cryptographic signature


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