upload tizen1.0 source
[platform/framework/web/wrt.git] / scripts / wrt_kill.expect
1 #!/usr/bin/expect -f
2 #read arguments
3 set arg1 [lrange $argv 0 0]
4 set arg2 [lrange $argv 1 1]
5 #run the telnet command to target
6 spawn telnet target
7 #wait for login prompt
8 expect -re "login:"
9 #send login
10 send "root\n"
11 #wait for shell prompt
12 expect -re "#"
13
14 #kill wrt clients
15 send "killall -9 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110 wrt-client wrt-test-ui\r"
16 #wait for result
17 expect -re "#"
18 #kill wrt engines
19 send "killall -9 wrt_engine_daemon\r"
20 #wait for result
21 expect -re "#"
22
23 #kill bluescreens
24 send "killall -9 blue-screen\r"
25 #wait for result
26 expect -re "#"
27
28
29 #bye
30 exit 0