Skip to content
Snippets Groups Projects
Verified Commit 4de0204a authored by Andrea Trentini's avatar Andrea Trentini
Browse files

monitor, pre beauty

parent 593b2557
Branches
No related tags found
No related merge requests found
......@@ -26,6 +26,18 @@ echo "(dir studenti: $DIR)"
TOUT="15.0s"
echo "(timeout: $TOUT)"
processaLinee(){
while
read line
do
if
test -n $line
then
echo "[$dir] $line"
fi
done
}
compila(){
echo ___ $1 ___
if
......@@ -36,7 +48,7 @@ compila(){
then
echo SUCCESS, lanciare monitor con timeout
mqtt $dir /running
timeout $TOUT cat $COM | tee $dir/$SKETCH.run
timeout $TOUT cat $COM | processaLinee | tee $dir/$SKETCH.run
#cat $COM
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment