I have 3 tasks in a script which have to run as follow.
#1 and 2 need to run in parallel
task1 &
task2
#when task 1 is complete, task 3 is launched
task3
My problem is that task 2 being a continous process it prevents task 3 to be launched. Either I have to ignore task 2 condition or I could also kill task 2 when task1 is done, not a problem.
If someone has any idea so my script can go on ! Thanks
If I add a new line with task4, it will then run once task3 complete ? (I actually still have a long thread of tasks behind task3).
– Bispen Jan 05 '17 at 19:10{ task1 ; task3 ; task4; } & task2 &
: tasks between braces will flollow the order of execution, they are also executed in the same shell, in background, the task2 will be executed in the same time but totally independent of others, in background too. Thanks – Hamza Jabbour Jan 06 '17 at 08:09