Hi:
I have 2 script on AIX server.
The child script is called by parent script.
For example:
The parent script full name is
/home/op/def/parent.spt
, which calls
/home/op/abc/child.spt
I want to get the parent program name with full path name (i.e. /home/op/def/parent.spt),
in /home/op/abc/child.spt.
It is because of both of them are not have the following statement:
#!/bin/ksh
it make the child script cannot get the parent process program name and path name via ps command.
Is there any other method to get the parent process program name?
If cannot , Is there any other method to get the parent process program name path name?
thank you very much