bash fork process templete