Skeleton for bash scripts based on PID