Posted By:
Jim_Wilson
Posted On:
Sunday, April 24, 2005 11:00 AM
I've added my own External Tool to Eclipse 3.1 M6. It runs the mysql command line tool. I use it to debug SQL scripts I am developing. The definition is below. However, it has one very annoying problem. When I run it the first time, it runs successfully, very briefly displays output in the console window, then blanks out the Console window. If I run it a second time, it works as expected. The behaviour is actually a bit more erratic than that. Sometimes it will work the first time, other times it takes a double run. For the most part, I have to run it twice to see results. I would guess it is some kind of timing problem, or issue with running External Tool that redirects stdin.
More>>
I've added my own External Tool to Eclipse 3.1 M6.
It runs the mysql command line tool. I use it to debug SQL scripts I am developing. The definition is below.
However, it has one very annoying problem. When I run it the first time, it runs successfully, very briefly displays output in the console window, then blanks out the Console window. If I run it a second time, it works as expected.
The behaviour is actually a bit more erratic than that. Sometimes it will work the first time, other times it takes a double run. For the most part, I have to run it twice to see results.
I would guess it is some kind of timing problem, or issue with running External Tool that redirects stdin.
The net is that I have to run the command twice every time
Location:
/usr/bin/bash
Arguments:
-c "mysql -t --batch -u user -ppassword db <${resource_loc}"
<<Less