Finish bash script for get parent pid