I’ve 2 perl programs: ‘p1’ and ‘p2’.
‘p1’ is parent program and ‘p2’ is child.
Program ‘p2’ is generating two files report: txt and excel.
To generate the txt report it is took 3 minutes and the excel file is 10 min.
‘p1’ is calling to ‘p2’ (fork) and waiting to the text report – once the text report is ready ‘p1’ should to continue parallel to ‘p2’.
Finally, ‘p1’ should to wait to ‘p2’ (check the status) and print message succeed.
Please advice how to wrote it using fork,wait and all the relevant checking around.
In reply to Split process->check ->and run Parallel by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |