]> git.llucax.com Git - z.facultad/75.74/practicos.git/commitdiff
Lanzador para punto 1.2.
authorLeandro Lucarella <llucax@gmail.com>
Mon, 24 Apr 2006 03:40:23 +0000 (03:40 +0000)
committerLeandro Lucarella <llucax@gmail.com>
Mon, 24 Apr 2006 03:40:23 +0000 (03:40 +0000)
practicas/practica2/P02e1201.sh [new file with mode: 0755]

diff --git a/practicas/practica2/P02e1201.sh b/practicas/practica2/P02e1201.sh
new file mode 100755 (executable)
index 0000000..4d45497
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+# Lanzo procesos
+./P02e1201 0 &
+p1=$!
+./P02e1201 1 &
+p2=$!
+./P02e1201 2 &
+p3=$!
+./P02e1201 3 &
+p4=$!
+./P02e1201 4 &
+p5=$!
+
+# Espero que terminen
+wait $p1
+wait $p2
+wait $p3
+wait $p4
+wait $p5
+
+# Limpio IPC
+ipcrm -M 0x77891120
+ipcrm -S 0x77891121