Quote:
Originally Posted by
fazliturk
ps -ef |grep jip>/dev/null /* finds if there is one whith no verbose */
if [ $? -ne 0 ] /* if there is not executes jip */
then
jip
fi
Infact i didn't get you.
My concern is to create a simple shell script name say "jip".
Ofcourse there are other jip process which are running in the background.which are generally stopped by another shell script (say stop.sh).
My concern is to check for multiple jip process which are left running even after "stop.sh" is executed.
So i want to change the stop.sh but inorder to visualize whether the modification is working fine or not, i have to check it .And this can be achieved if only there are multiple jip process.
So i want to create a shell script which when runned should be viewed in the ps + grep of jip.
But i am not been able to do it.
I have created a file with the name jip.sh, where an infinite loop is running, but then also it is not viewed when i do grep for the "jip" process.
Can u please help me out from this. ?