kofucii kofucii - 4 years ago 164
Bash Question

Child process to kill its parent whithout terminating itself

How can I kill parent process script from child process script, without terminating child process in Linux.

Answer Source

If your shell defines PPID, kill $PPID will kill the parent. If your shell does not define PPID, you can probably get it with PPID=$( ps -o ppid= $$ ). There is no reason for this action to kill the child.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download