Update refresh.exp

This commit is contained in:
Mikko Ahlroth 2017-01-22 20:59:19 +02:00
parent afeee5e0e0
commit 0d4b50c1e6

View file

@ -1,7 +1,7 @@
#!/usr/bin/expect
# This script will send the refresh command to a specified Mebe instance
# The name of the instance (given with --sname <name>) should be given as the first argument
# The name of the instance (given with --name <name>) should be given as the first argument
# The second argument should be the local hostname of the node running Mebe
# You need the expect program to use this script
@ -9,7 +9,7 @@ set timeout 10
set name [lindex $argv 0]
set node [lindex $argv 1]
spawn iex --sname meberefresher
spawn iex --name meberefresher
expect "iex\(" { send "" }
expect -- " -->" { send "r '$name@$node' 'Elixir.IEx'\n" }