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" 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 just >fine. There is

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" 2>&1 The above BAT file will run post-commit.sh (because the name of the BAT file is post

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 kindl

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 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 >there. Just for reference

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 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 -c ./myscrip

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 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 attention to the following matters:

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 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 -c ./myscript I've us

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" 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 intere

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 simil

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 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 > association to start .sh-f

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

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

2009-01-04 Thread Hongyi Zhao
Hi all, I've some cygwin/bash scripts and I want to invoke them without log into the Cygwin's bash terminal. Is this possible? Regards, -- .: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: