$recorderID = fork(); if ( $recorderID == 0) { system($data); exit(0); } else if ( $recorderID > 0) { print " Start Record now ID:$recorderID\n"; $recorderID0 = $recorderID + 2 ; print "$recorderID0 \n"; $recorderFlag = 1; printlog("DebugLog: Start Record now ID in id 3:$recorderID; $recorderID0"); } else { printlog("DebugLog: Con't fork child process.") }; }