4 getParentProcessID >>= \ ppid ->
5 getProcessID >>= \ pid ->
6 putStr "Parent Process ID: " >>
8 putStr "\nProcess ID: " >>
10 putStr "\nforking ps uxww" >>
13 forkProcess >>= \ child ->
15 Nothing -> executeFile "ps" True ["uxww" ++ show ppid] Nothing
16 Just x -> doParent x pid
19 getProcessStatus True False cpid >>
20 putStr "\nChild finished. Now exec'ing ps uxww" >>
23 executeFile "ps" True ["uxww" ++ show pid] Nothing