Check if process is running before trying to execute command and displaying list.