linuxshell

Linux command to check if a shell script is running or not


What is the linux command to find if a process say aa.sh is running or not. ps command does not seem to work and it does not show the shell script names.

Please advise.


Solution

  • Check this

    ps aux | grep "aa.sh"