Skip to content
Snippets Groups Projects
Commit d4ffb17e authored by Armin Co's avatar Armin Co
Browse files

Start script

parent ab5cf008
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,6 @@ echo "Turning everything off.." ...@@ -4,6 +4,6 @@ echo "Turning everything off.."
for i in {0..60} for i in {0..60}
do do
./manual_control $i 0 > /dev/null ./build/manual_control $i 0 > /dev/null
done done
echo "done!" echo "done!"
#!/bin/bash
echo "Starting server!"
./build/smart_grid.exe &
SMART_GRID_PID=$!
echo "Press 'q' to exit"
count=0
while : ; do
read -n 1 k <&1
if [[ $k = q ]] ; then
printf "\nQuitting from the program\n"
kill $SMART_GRID_PID
./all_off.sh
break
else
echo "Press 'q' to exit"
fi
done
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment