nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

run bash script without cygwin installation?

Von: John Doe (johndoe@example.com) [Profil]
Datum: 17.07.2008 10:35
Message-ID: <g5n08q$nme$1@aioe.org>
Newsgroup: de.alt.comp.cygwin+co
Hallo leute,

(my written German would be very poor, so I hope you won't mind me asking in English;-)

I have quite a complex linux bash script, which is working perfectly also under cygwin.
But I'd like to give
it also to my windoze friends, who don't want to bother with cygwin - just run a batch and
let it pass :-)

I have thought that I will make a directory, copy there needed dlls such as cygwin1.dll,
bash.exe,
grep.exe, sed.exe, sleep.exe, etc - just the requiered commands by the script, and create
bat file which
will run bash.exe with script as a parameter. But this does not work :-(

Looks like bash needs to run from the installed forlder (c:\cygwin in my case). Script
gets interpreted
correctly by bash, but any external command calls to grep, sleep,... are not working, I
get error
messages like "line 49: sleep: command not found" even when I have the commands
in the current
directory. I think this could be done somehow, I'm using some cygwin utils such as rsync
on computers
without cygwin installation, when I have correct dlls in the same dir.

Thank you in advance. (You can of course reply in German, I have no problems with
understanding it)

[ Auf dieses Posting antworten ]