X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/55a9bc74aa524ecbfdc641099976850b29043bda..fc5c0d5eada9500c5c5e1369ef00ed201d45a3e1:/practicas/practica2/P02e1201.sh?ds=sidebyside 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