wpietron
02-27-03, 08:40
| SunOS 5.8 Dear gurus, I have a group of tasks: `task1`, `task2`, `task3`. I do not know how long it takes to process them. But I know I can paralell them because they are independent. When the longest task of the group ends I want to run `task4` because it is based on results of finished `task1`, `task2` and `task3`. I pay attantion to fact, that I do not know which task is the longest one. Have a look at the ascii-pic of the processing I would like to get: ################################# --task1----- --task2-- --task3----------- --task4------- |paralelled tasks | task depended| ################################# Are where any mechanism in ksh that let me do such a processing? I tried any combination of 'wait', 'exec', '&', '(', ')' but I was not successful. Does anybody know any other shells or tools that can enable me such a processing? I appreciate any help. Examples would be great. Thank you in advance. Wojciech |