Created
July 25, 2016 13:15
-
-
Save hmoenck/442fd4cb29e7f0416f6ccbf13c1c080b to your computer and use it in GitHub Desktop.
Simple script to wrap around acquisition process.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mytitle="Acquisition" | |
echo -e '\033]2;'$mytitle'\007' | |
path=$(dirname $0) | |
cd $path | |
[ `whoami` = root ] || exec su -c "sh $0" root | |
#If there are more than 10 crashes, something went rather systematically Wrong. | |
for i in 1 2 3 4 5 6 7 8 9 10 | |
do | |
screen -S "ACQ" -L ./bb_ImageAcquistion | |
date >> crashreport_bb_ImageAcquistion.txt | |
/home/moenck/slackpost.sh Crash of acquisition process on Emma. | |
done | |
/home/moenck/slackpost.sh Acquisition process on Emma died permanently! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment