#!/bin/bash

if [ $# -ne 1 ]
then
  echo "Uso: lanzar <ruta-al-archivo>"
  exit 1
fi

if test -x $1 
then
  for i in 1 2 3 4 5 6 7 8 
  do
    echo Lanzado $i $1
    $1 &
    echo Pid lanzado $!
  done
else
  echo $1 debe existir y ser ejecutable
  exit 1
fi
