Update refresh.exp
This commit is contained in:
parent
afeee5e0e0
commit
0d4b50c1e6
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/expect
|
#!/usr/bin/expect
|
||||||
|
|
||||||
# This script will send the refresh command to a specified Mebe instance
|
# 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
|
# The second argument should be the local hostname of the node running Mebe
|
||||||
# You need the expect program to use this script
|
# You need the expect program to use this script
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ set timeout 10
|
||||||
set name [lindex $argv 0]
|
set name [lindex $argv 0]
|
||||||
set node [lindex $argv 1]
|
set node [lindex $argv 1]
|
||||||
|
|
||||||
spawn iex --sname meberefresher
|
spawn iex --name meberefresher
|
||||||
|
|
||||||
expect "iex\(" { send "" }
|
expect "iex\(" { send "" }
|
||||||
expect -- " -->" { send "r '$name@$node' 'Elixir.IEx'\n" }
|
expect -- " -->" { send "r '$name@$node' 'Elixir.IEx'\n" }
|
||||||
|
|
Reference in a new issue