.c.f.

appium pid

ps -A | grep [a]ppium | awk '{print $1}'

The [a] trick it to stop the process doing the grep showing up in the search as searching for [a]ppium, not appium.

Install Via