Utility scripts for a TES3MP server administrator.
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.
 
 

19 lines
402 B

#!/usr/bin/expect -f
# Try to spawn a server process. Ensure it started properly by reading for a
# specific string. Once found, send a newline to gracefully stop the server.
# Then check for two success strings before considering all to be well.
set timeout -1
spawn make
expect "Called \"OnServerPostInit\""
send -- "\n"
expect "Error state: false"
expect "Quitting peacefully."
expect eof