X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/b41dff9793f9f1cf76472e937d59a47a7cd1888b..fc5c0d5eada9500c5c5e1369ef00ed201d45a3e1:/practicas/practica2/P02e2111.sh diff --git a/practicas/practica2/P02e2111.sh b/practicas/practica2/P02e2111.sh index 82b1f0c..a33e5a4 100755 --- a/practicas/practica2/P02e2111.sh +++ b/practicas/practica2/P02e2111.sh @@ -1,14 +1,14 @@ #!/bin/sh # Lanzo procesos -./P02e2111 0 & +./P02e2111 0 $1 & +p0=$! +./P02e2111 1 $1 & p1=$! -./P02e2111 1 & -p2=$! # Espero que terminen +wait $p0 wait $p1 -wait $p2 # Limpio IPC ipcrm -M 0x77891220