Hi there,
First, must said sorry for my bad english : hope to be understood.
I work on HP-UX and need to work with specific processus.
In order to migrate to other system with the less work as possible (portability) i must write a script that verify if a processus B is a son of a processus A.
Can't use the PPID or other (for migration purpose) so i take this way :
(i have the process id of the father)
- write the result of a 'proctree command' in a file
- then do a loop :
for line in `cat file_tree`
do
(ACTION)
done
file_tree is like that :
INIT
|-- process X
|-- process A
|-- process B
If process B is son of process A then i launch another batch.
My prob is : what could i put in (ACTION) to release this action ?
Very difficult to explain :/
Thanxs in advance