-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmfz_test.sh
More file actions
43 lines (34 loc) · 1.28 KB
/
mfz_test.sh
File metadata and controls
43 lines (34 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
echo ""
if [[ $2 == "zoom_in" ]]; then
echo "RUN "$2
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2 -d parameter2=down
sleep $3
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2 -d parameter2=up
fi
if [[ $2 == "zoom_out" ]]; then
echo "RUN "$2
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2 -d parameter2=down
sleep $3
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2 -d parameter2=up
fi
if [[ $2 == "base" ]]; then
echo "RUN "$2
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2
fi
if [[ $2 == "current_pos" ]]; then
echo "RUN "$2
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2
fi
if [[ $2 == "zoom_move" ]]; then
echo "RUN "$2
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2 -d parameter2=$3
fi
if [[ $2 == "AF_smart" ]]; then
echo "RUN "$2
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2
fi
if [[ $2 == "gen_tbl" ]]; then
echo "RUN "$2
curl http://$1/cgi-bin/setup_ajax_sys_2motor.cgi -d category=2motor_control -d parameter1=$2
fi
echo ""