So.. I use KSH on Solaris8 for quite long but this is the first time I got something like this:
I start a script - let's call it splitCfg. When I call pgrep -x splitCfg
I'm finding two instances of this script - the main instance and a child of my script (output from ps):
root 28069 25107 0 20:22:01 pts/10 0:00 splitCfg
root 4668 28069 0 20:22:50 pts/10 0:00 splitCfg
As you can see - the first instance is a parent for a child. However - there is no subprocess created from the main script. When I call the ps or pgrep or ptree one more time I get: 1. no child process or 2. a new child process
I am looking for some explanation. I believe I've search whole Internet, so it's time to ask all of you for some of your precious time :)
Is it some sort of the KSH bug (note that I'm using pretty old version from Solaris 8) or am I missing something. I understand that single script should create a single PID and leave it when it finishes.
Thanks, Saperzasty