Skip to content
Snippets Groups Projects
Select Git revision
  • d4ffb17e19eac6b864ca9cb82f65fed99372db3c
  • master default
  • feature_scripts
  • develop
  • feature_without_logging
  • feature_opc_server
  • feature_seperate_apps
  • fix_raspi_cmake
  • ss19 protected
  • ss20
10 results

start_server.sh

Blame
  • Armin Co's avatar
    Armin Co authored
    d4ffb17e
    History
    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