Page 1 of 1
bash blues
Posted: Tue Jan 30, 2007 6:43 am
by amif2000
Hi Jussi,
I would like to run Cygwin from within Zeus. I added a tool and point it to c:\cygwin\bin\bash.exe with the -i -l arguments, and a normal window option. The window opens, and bash starts at a directory that is not the root directory of my user and doesn't run .bashrc
Running the same from a command prompt or from the Cygwin icon does start at the user root folder.
Any idea what this might be?
Amit
Posted: Tue Jan 30, 2007 8:38 am
by jussij
Hi Amit,
Are you using the
--rcfile bash command line option
This web page seems to suggest this should be possible:
http://www.bioinf.uni-freiburg.de/~mman ... ndows.html
The page also suggest you can run a bash command from a Windows batch file.
Now if this is the case, it should be possible to have Zeus run the windows batch file and if you have the bash command pipe it's output to a text file, it should also be possible to have Zeus read this output text file and have the output displayed in the Zeus error window.
For more details search the forum for the word:
capture
Cheers Jussi
Posted: Tue Jan 30, 2007 12:20 pm
by amif2000
Thanks Jussi,
Looks like adding the cygwin bin directory to the PATH resolved this problem.
Now, I would like to open bash in the project directory.
I have a small batch that I run:
And I send it $PDR and $PD as arguments. They both turn out to be empty, although I have a workspace and project defined. (BTW, $FD is not empty). So I guess I'm not setting something right for Zeus to fill those macros. Please assist.
Amit
Posted: Tue Jan 30, 2007 12:35 pm
by jussij
Hi Amit,
Use the
Macros,
Execute Script menu and run the
ztag.lua macro. This macro will list most of the Zeus macros and the values they substitute into
Cheers Jussi
Posted: Tue Jan 30, 2007 12:44 pm
by amif2000
OK, that sure helped.
Got it to work with %1 = $WDRV and %2 = $PDD. Other macro tags are empty for some reason
Amit
Posted: Tue Jan 30, 2007 12:51 pm
by jussij
Hi Amit,
Some of the Zeus tags come out of the panels of the Options, Editor Options menu while others come from panels of the Workspace Options menu.
So the ones that are empty means these settings have not been defined in either of these two locations.
Cheers Jussi