get app pid (OS X)
Deprecated
important: repo deprecated
Install
[sudo] pip install app-pid
Features
- app name, path, bundle support
- case insensitive (name, path)
Examples
$ app-pid "iTunes"
294
$ app-pid "iTunes.app"
294
$ app-pid "com.apple.iTunes" # bundle
294
$ app-pid "unknown" &> /dev/null && echo "running" || echo "not running"