X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/55a9bc74aa524ecbfdc641099976850b29043bda..51f24d14e8c4c52776a98c8e2aaacf95f90ad1f4:/practicas/practica2/P02e1201.sh diff --git a/practicas/practica2/P02e1201.sh b/practicas/practica2/P02e1201.sh index 4d45497..24015c6 100755 --- a/practicas/practica2/P02e1201.sh +++ b/practicas/practica2/P02e1201.sh @@ -1,23 +1,23 @@ #!/bin/sh # Lanzo procesos -./P02e1201 0 & +./P02e1201 0 $1 & +p0=$! +./P02e1201 1 $1 & p1=$! -./P02e1201 1 & +./P02e1201 2 $1 & p2=$! -./P02e1201 2 & +./P02e1201 3 $1 & p3=$! -./P02e1201 3 & +./P02e1201 4 $1 & p4=$! -./P02e1201 4 & -p5=$! # Espero que terminen +wait $p0 wait $p1 wait $p2 wait $p3 wait $p4 -wait $p5 # Limpio IPC ipcrm -M 0x77891120