This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
I have to run a utility on Ubuntu but that utility can be run only under a specific user group.I am using the ProcessBuilder class to run that utility but I don't know how to run the Java program (or the thread) under that specific user
Example: the utility dbmaint (Pervasive SQL) can be run only if you are under the user group "psql".
I would like to run dbmaint from my java program as a psql user. Any pointers code snippets would be really helpful