parsing,and Fork and wait for processes