mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-26 08:51:08 +00:00
10 lines
274 B
PHP
10 lines
274 B
PHP
|
proc power_plug_connect { server_ip user_name password } {
|
||
|
spawn telnet $server_ip 1234
|
||
|
set connection_id $spawn_id
|
||
|
expect -i $connection_id "KSHELL V1.*"
|
||
|
send -i $connection_id "login $user_name $password\n"
|
||
|
expect -i $connection_id "250 OK"
|
||
|
|
||
|
return $connection_id
|
||
|
}
|