Select Git revision
start_server.sh

Armin Co authored
start_server.sh 381 B
#!/bin/bash
# Start server
./build/smart_grid.exe &
SMART_GRID_PID=$!
echo Smart Grid PID: $SMART_GRID_PID
# Wait for exit
echo "Press 'q' to exit"
while : ; do
read -n 1 key <&1
if [[ $key = q ]] ; then
printf "\nQuitting from the program\n"
kill $SMART_GRID_PID
./all_off.sh
break
else
echo "\nPress 'q' to exit"
fi
done