Сравнение постов

Различия между постами #121409 (21.05.2019 16:36) и #163655 (10.02.2021 14:35).
1
#!/usr/bin/env bash
2
PS3='Please enter your choice: '
3
options=("start esb" "stop esb" "Quit")
4
select opt in "${options[@]}"
5
do
6
    case $opt in
7
        "start esb")
8
            curl --header "Content-Type: application/json" --request POST --data '{ "delay": 20000, "period":200000 }' http://localhost:9090/job/startESB
9
            ;;
10
        "stop esb")
11
            curl -XGET http://localhost:9090/job/stopESB
12
            ;;
13
        "Quit")
14
            break
15
            ;;
16
        *) echo "invalid option $REPLY";;
17
    esac
18
done