Select Git revision
start_server.sh

Armin Co authored
start_server.sh 282 B
#!/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