1#!/bin/bash 2# Aim: Program to perform running script check (Running Script Check). 3if pgrep -x "bash" > /dev/null; then 4 echo "a shell is running" 5else 6 echo "no shell is running" 7fi 8