How to Programmatically Find, Kill, and Restart a local DynamoDB Process

Solution 1:

kill `ps -ax |grep Dynamo |awk '{print $1}'` 

should do it. note, this will kill any proc that matches Dynamo