Unix Commands Within Processing

I keep finding myself needing to be able to run Unix commands within Processing sketches (maybe too much time spent writing Bash scripts lately), but no one seems to have a good solution.  Today I was able to get the Java exec() command to work within Processing… hooray!

EDIT: want to do something more complex?  You can run a Bash script too!