Auto porting bash scripts to Windows batch

Michael L Torrie pluglist at plug.org
Mon Nov 1 12:19:42 MST 2004


On Mon, 2004-11-01 at 12:03 -0700, Dan Egli wrote:
> I have to agree here, except it's %* not %$. %$ on my XP Pro box only 
> echos the $ char. But echo %* echos all paramaters. I did something 
> simliar when I had to routinely post the same message to a local message 
> base. I had cygwin installed, wrote the script in bash using string 
> substitutions and then had a batch file call bash.exe -c with the script 
> and %* as the paramaters. Worked great! The file was something like this:
> 
> runposts.bat:
> @c:\cygwin\bin\bash.exe -c "c:\bbs\fmail\autopost.sh %*"

Right.  I just mistyped the thing.

Trim please.

> 
> 

-- 




More information about the PLUG mailing list