You could also use the shell command Eclipse uses. To get it:
- Run your program in Eclipse
- Go to the "Debug" view
- Right-click on the process (probably the second item in the tree) and select "Properties"
- Copy shell command and delete the agentlib flag to run in bash