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]

Re: Getting started with bash


On Mon, Apr 7, 2008 at 4:25 AM, Michael Holm <hollo@hollo.dk> wrote:
> Hi,
>
>  I have read a lot of documents, but i really cant get this issue solved :(
>  All i want is to be able to execute bash scripts from a windows
>  desktop.. what i do now is..
>
>
>  a batch script:
>  c:\cygwin\bin\bash c:\cygwin\example.sh
>
>  this is my bash script.
>
>  example.sh
>  ls -l
>
>
>  but i get the following output:
>  command not found.
>
>  i hope that someone can give me a hit... all i have done is:
>  install cygwin, made my batch script.. and made my bash script.. do i
>  need to set any environment vars or something?
>
>  mvh
>  Michael Holm


What works for me is to create a text file (script) with a .sh
extension.  Make something simple like:
echo 123
sleep 10

Then double-click on it, and windows will ask what program to open the
.sh extension.  Select "choose another program" and browse to
c:\cygwin\bash.exe.

That's always worked for me, with no need for doing any "login shell" stuff.

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