Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 291 Bytes
#!/usr/bin/env expect
set client [lindex $argv 0]
set type [lindex $argv 1]
set prompt [lindex $argv 2]
set command [lindex $argv 3]
set appname [lindex $argv 4]
spawn $client console $type --app $appname
expect $prompt
send $command
send "\n"
expect $prompt
send "exit\n"
expect eof