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