Skip to content

Instantly share code, notes, and snippets.

@hmoenck
Created July 25, 2016 13:15
Show Gist options
  • Save hmoenck/442fd4cb29e7f0416f6ccbf13c1c080b to your computer and use it in GitHub Desktop.
Save hmoenck/442fd4cb29e7f0416f6ccbf13c1c080b to your computer and use it in GitHub Desktop.
Simple script to wrap around acquisition process.
#!/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