From: Greg Chicares <gchicares@sbcglobal.net>
To: cygwin@cygwin.com
Subject: Re: running .bat file in cygwin
Date: Wed, 11 Jul 2012 16:59:00 -0000 [thread overview]
Message-ID: <4FFDB0CE.5030206@sbcglobal.net> (raw)
In-Reply-To: <34146666.post@talk.nabble.com>
On 2012-07-11 16:26Z, emon wrote:
>
> Can anyone suggest me how I can run this .bat file at cygwin or refer me to
> a site.
Since you've decided to start using Cygwin, the best advice
is probably to write it as a shell script instead. There are
many tutorials on the web.
But if you really want to use a batch file...make sure it's
executable, then just run it--for example:
/tmp[0]$cat >eraseme.bat <<\EOF
echo Hello from batch file
EOF
/tmp[0]$chmod +x eraseme.bat
/tmp[0]$./eraseme.bat
C:\cygwin-1_7\tmp>echo Hello from batch file
Hello from batch file
--
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
next prev parent reply other threads:[~2012-07-11 16:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 16:26 emon
2012-07-11 16:38 ` Adam Dinwoodie
2012-07-11 16:39 ` Larry Hall (Cygwin)
2012-07-11 17:05 ` emon
2012-07-11 17:54 ` Larry Hall (Cygwin)
2012-07-11 16:59 ` Greg Chicares [this message]
2012-07-11 18:25 ` Earnie Boyd
2012-07-11 19:33 ` emon
2012-07-11 19:41 ` James Johnston
2012-07-12 2:57 ` Earnie Boyd
2012-07-12 19:52 ` emon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FFDB0CE.5030206@sbcglobal.net \
--to=gchicares@sbcglobal.net \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).