aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.travis/track_status.sh
blob: 370267605d2c5af1809bf77627db5ddf6fe237fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

main() {
    local log_path
    log_path="$( mktemp )"

    nohup python3 -m bin.track_status egor.tensin > "$log_path" 2>&1 &
    local pid="$!"

    sleep 15
    kill -SIGINT "$pid"
    wait "$pid"

    cat "$log_path"
}

main