Select Git revision
array-param-05.c
start_server.sh 297 B
#!/bin/bash
# Start server
./build/smart_grid.exe &
SMART_GRID_PID=$!
# Wait for exit
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 ""
echo "Press 'q' to exit"
fi
done