I'm running a script called RecordProcessor.sh and I'm writing another script to check whether RecordProcessor.sh is running or not.Even though that process is running, if i do grep I'm not able to find the process running .
My script is as follows:
ps -U $LOGNAME | grep "RecordProcessor.sh"
I did everything even like
ps -U $LOGNAME | grep -v grep | grep "RecordProcessor.sh"
I can only find in which bash it is running not the actual file name.