Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-08 Thread Hongyi Zhao
On Tue, 6 Jan 2009 16:09:48 +0100, Frank Fesevur f...@users.sourceforge.net wrote: Found it. You can download it from: http://www.fesevur.com/downloads/weft-0.4-1.tar.bz2 http://www.fesevur.com/downloads/weft-0.4-1-src.tar.bz2 As you can see it was developed back in 2006. It works for me

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-06 Thread Hongyi Zhao
On Mon, 05 Jan 2009 08:51:11 -0500, Robert Pendell shi...@elite-systems.org wrote: For all of the above you probably wouldn't find anything in bash built-in help docs. You would find it in the man page for bash. Type 'man bash' in a cygwin window and you will find both -l and -c defined

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-06 Thread Frank Fesevur
Hongyi Zhao wrote: I have written a small utility named 'weft' that can set a file association to start .sh-files with a cygwin bash by double clicking it in the Explorer. I don't have it here anymore, so I have to dig that up in my archives if you interested. Very good, would you kindly give me

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-06 Thread Jared Silva
$ cat post-commit.bat SET BIN=D:\UNIX\cygwin\bin SET DPN_TMP=%TMP%\%~nx0 %BIN%\cygpath.exe -au %~dpn0 %DPN_TMP% SET /P DPN= %DPN_TMP% DEL %DPN_TMP% %BIN%\bash.exe %DPN%.sh %* %~dpn0.log 21 The above BAT file will run post-commit.sh (because the name of the BAT file is post-commit.bat) and

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-05 Thread Hongyi Zhao
On Sun, 4 Jan 2009 12:07:31 +0100, Spiro Trikaliotis an-cyg...@spiro.trikaliotis.net wrote: d:\ bash -c ./myscript I've tested the above code and work it out like this: set cygwin_bin=C:\cygwin\bin %cygwin_bin%\bash -l %~dp0myscript myresult In the above example by me, we need to pay

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-05 Thread Hongyi Zhao
On Sun, 4 Jan 2009 11:31:42 +0100, Frank Fesevur f...@users.sourceforge.net wrote: I have written a small utility named 'weft' that can set a file association to start .sh-files with a cygwin bash by double clicking it in the Explorer. I don't have it here anymore, so I have to dig that up in my

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-05 Thread Hongyi Zhao
On Sun, 4 Jan 2009 12:07:31 +0100, Spiro Trikaliotis an-cyg...@spiro.trikaliotis.net wrote: Hello, * On Sun, Jan 04, 2009 at 06:20:20PM +0800 Hongyi Zhao wrote: I've some cygwin/bash scripts and I want to invoke them without log into the Cygwin's bash terminal. Is this possible? d:\ bash

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-05 Thread Robert Pendell
Hongyi Zhao wrote: On Sun, 4 Jan 2009 12:07:31 +0100, Spiro Trikaliotis an-cyg...@spiro.trikaliotis.net wrote: Hello, * On Sun, Jan 04, 2009 at 06:20:20PM +0800 Hongyi Zhao wrote: I've some cygwin/bash scripts and I want to invoke them without log into the Cygwin's bash terminal. Is this

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-04 Thread Spiro Trikaliotis
Hello, * On Sun, Jan 04, 2009 at 06:20:20PM +0800 Hongyi Zhao wrote: I've some cygwin/bash scripts and I want to invoke them without log into the Cygwin's bash terminal. Is this possible? d:\ bash -c ./myscript Note that you might have to add the path to bash (c:\cygwin\bin\bash or

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-04 Thread Frank Fesevur
Hongyi Zhao wrote: I've some cygwin/bash scripts and I want to invoke them without log into the Cygwin's bash terminal. Is this possible? I have written a small utility named 'weft' that can set a file association to start .sh-files with a cygwin bash by double clicking it in the Explorer. I

Re: Trick cmd.exe of Windows XP to run cygwin Batch Script.

2009-01-04 Thread Jeenu V
On Sun, Jan 4, 2009 at 4:01 PM, Frank Fesevur f...@users.sourceforge.net wrote: Hongyi Zhao wrote: I've some cygwin/bash scripts and I want to invoke them without log into the Cygwin's bash terminal. Is this possible? I have written a small utility named 'weft' that can set a file