How start & stop MAMP PRO using command line?

apache, localhost, macos, mamp

Solution

http://pastebin.com/avn0BFap

Save the script and give executable rights such as: `chmod +x start.sh`

Then use it like `./start.sh Start` or `./start.sh Stop` or `./start.sh Restart`

Problem

I am trying to find a way by which I can start and stop MAMP PRO's Apache and mysql using command line. So far whatever I have search has only helped me start MAMP PRO. Thanks.

Original source