Bash check if a program is running or not

You can find process id for a running program with command

Example

We can use pidof command in bash script to find if a program is running or not

See bash

Leave a Reply

Your email address will not be published. Required fields are marked *