The answer above was mostly correct, just needed some tweaking for the different parameters in Mac OSX.
ps -A | grep [f]irefox | awk '{print $1}'
More Related Contents:
- How do I create a Bash alias?
- Why isn’t DYLD_LIBRARY_PATH being propagated here?
- Run a script only at shutdown (not log off or restart) on Mac OS X
- Quick-and-dirty way to ensure only one instance of a shell script is running at a time
- How to restore .bash_profile on a mac? None of my unix terminal are working [closed]
- grep -P no longer works. How can I rewrite my searches?
- Running a command in a new Mac OS X Terminal window
- How to run a shell script in OS X by double-clicking?
- How does Ctrl-C terminate a child process?
- Why does cURL return error “(23) Failed writing body”?
- Date command does not follow Linux specifications (Mac OS X Lion)
- OS X / Linux: pipe into two processes?
- How to run a shell script on a Unix console or Mac terminal?
- How can I clear previous output in Terminal in Mac OS X?
- Why is this bash prompt acting strangely/disappearing, and how do I fix it (OS X)?
- How to Batch Rename Files in a macOS Terminal?
- How to run mvim (MacVim) from Terminal?
- Bash script absolute path with OS X
- How to pipe multiple commands into a single command in the shell? (sh, bash, …)
- Parse ifconfig to get only my IP address using Bash
- Linux/Unix command to determine if process is running?
- Where to place $PATH variable assertions in zsh?
- Installing Homebrew on macOS
- Difference between .profile and .bash_profile on Snow Leopard
- What is the Unix command to create a hardlink to a directory in OS X?
- how to pass command-line arguments to a program run with the open command?
- Using groovy, how do you pipe multiple shell commands?
- How to make OS X to read .bash_profile not .profile file
- Add app to OSX “Login Items” during a Package Maker installer postflight script
- How do you run a script on login in *nix?