You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
empyrion-bot/scripts/srvstatus.expect

15 lines
231 B

#!/usr/bin/expect
set timeout 10
set host [lindex $argv 0]
set port [lindex $argv 1]
set pass [lindex $argv 2]
spawn telnet $host $port
expect "password:"
send "$pass\r"
expect "Logged in successfully"
send "plys\r"
expect eof