]>
git.llucax.com Git - z.facultad/75.74/practicos.git/blobdiff - practicas/practica2/P02e2111.sh
#!/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