How can I kill parent process script from child process script, without terminating child process in Linux.
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.