blob: 3de64815e275f8c15dff371e1c0e7e163019b9b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
echo -e >> $OGLOGFILE
echo "Contenido de la ejecucion: *****************************" >> $OGLOGFILE
cat $1 >> $OGLOGFILE
echo -e >> $OGLOGFILE
echo -e >> $OGLOGFILE
echo "Salida: *****************************" >> $OGLOGFILE
chmod +x $1
$1 &>> $OGLOGFILE
RETVAL=$?
echo $RETVAL &>> $OGLOGFILE
if [ $RETVAL == 0 ]
then
rm $OGLOGFILE
touch $OGLOGFILE
else
echo $RETVAL &>> $OGLOGFILE
fi
exit $RETVAL
|