]> git.llucax.com Git - z.facultad/75.74/practicos.git/blobdiff - practicas/practica2/P02e1101.sh
Mejora debug.
[z.facultad/75.74/practicos.git] / practicas / practica2 / P02e1101.sh
index c5d891e41b2136d3393b9c3c500120b38d2b28a6..297884103a159f7bd61cc6ca9412daec125907db 100755 (executable)
@@ -1,12 +1,13 @@
 #!/bin/sh
 
 # Lanzo procesos
-./P02e1101 0 &
+./P02e1101 0 $1 &
+p0=$!
+./P02e1101 1 $1 &
 p1=$!
-./P02e1101 1 &
 
 # Espero que terminen
-wait $!
+wait $p0
 wait $p1
 
 # Limpio IPC