Changeset 875 for trunk/Monitoring/libIGCM_mock/libIGCM_mock.sh
- Timestamp:
- 06/11/13 15:05:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Monitoring/libIGCM_mock/libIGCM_mock.sh
r871 r875 49 49 50 50 OPTIONS: 51 -c ask for confirmation 51 52 -h this help 52 53 -f set stack file 53 54 -l print scenarios list 54 55 -m set MODE 55 MODE may be "scenario", "stackfile" or " purge"56 MODE may be "scenario", "stackfile" or "cleanup" 56 57 default mode is "scenario" 57 58 -s set scenario file … … 84 85 } 85 86 87 send_cleanup_msg() 88 { 89 $send_msg_cmd -h localhost -p 5672 -b "$( echo {\"code\":\"8888\"} | base64 -w 0 )" 90 } 91 86 92 # check 87 93 … … 130 136 # check 131 137 if [ ! -f "$g__scenariofile" ]; then 132 msg "LIBIGCM-MOCK-ERR003" "scenario file not found "138 msg "LIBIGCM-MOCK-ERR003" "scenario file not found ($g__scenariofile)" 133 139 exit 1 134 140 fi … … 222 228 223 229 if [ "$g__confirm" = "1" ]; then 224 read -p " Press enter for next message" bla230 read -p "<<< $l__JSON_msg_buf >>>> sent. Press enter for next message" bla 225 231 else 226 232 sleep $g__delay … … 234 240 done 3<$g__scenariofile 235 241 236 elif [ "$g__mode" = " purge" ]; then237 238 :242 elif [ "$g__mode" = "cleanup" ]; then 243 244 send_cleanup_msg 239 245 240 246 elif [ "$g__mode" = "stackfile" ]; then
Note: See TracChangeset
for help on using the changeset viewer.