This is the mail archive of the cygwin@cygwin.com 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]

Re: Calling bash shell from W2K batch script


Jared Ingersoll wrote:

Hi,

I was wondering if someone could provide the syntax for calling a cygwin shell script from the Windows 2000 cmd prompt. I'm trying to do something like this:

d:\>start c:\cygwin\bin\bash -c "./script1.sh"

But it doesn't seem to be working quite right, some pipes and such don't work and I can't execute a command in the script like > file.`date +%Y%m%d`. What I'm trying to do is write a cygwin script to execute some mixed NT commands and unix commands to check some network stuff, move around some files etc. The reason I want to do it this way is to use windows task scheduler to automate the task on a nightly bases.

Alternative: Use cron!
--
The other day I was playing poker with Tarot cards. I got a full house and four people died.




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


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