Have p1 fork and exec p2. Have p2 write the txt report and then send a signal (with kill and getppid) to p1. After the fork, p1 can just sleep until it gets that signal. It would probably be a good idea to have p1 check that p2 is still alive (with kill or waitpid) once in a while. Once p1 gets its signal, it can do what it wants with the txt report while p2 works on the Excel report. When p1 is ready to wait again, just waitpid for p2 and check its exit status to make sure there was no error.
In reply to Re: Split process->check ->and run Parallel
by kyle
in thread Split process->check ->and run Parallel
by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |