diff options
author | Yiting.Li <liyiting@huawei.com> | 2016-01-20 11:01:43 +0800 |
---|---|---|
committer | Yiting.Li <liyiting@huawei.com> | 2016-01-20 11:01:43 +0800 |
commit | 194ae04e266f63512a8f041f6bfd0dc330cd81af (patch) | |
tree | 6054415a0c9de8617076766c43dedaccbd6997cc /utils/infra_setup/heat_template/vstf_heat_template/ssh.sh | |
parent | 830b8c8c9f158fad8f9b1fc0977ae6deee3e9bed (diff) |
JIRA: BOTTLENECKS-41 define the documents of vstf in B release
Change-Id: Ib2ef6fabf0452a3e686d3de0ec7424e9a0500482
Signed-off-by: Yiting.Li <liyiting@huawei.com>
Diffstat (limited to 'utils/infra_setup/heat_template/vstf_heat_template/ssh.sh')
-rw-r--r-- | utils/infra_setup/heat_template/vstf_heat_template/ssh.sh | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/utils/infra_setup/heat_template/vstf_heat_template/ssh.sh b/utils/infra_setup/heat_template/vstf_heat_template/ssh.sh deleted file mode 100644 index 35600065..00000000 --- a/utils/infra_setup/heat_template/vstf_heat_template/ssh.sh +++ /dev/null @@ -1,28 +0,0 @@ -function run_cmd() -{ - local ip=$1 - local usr=$2 - local passwd=$3 - local cmd=$4 - expect -c " - spawn ssh $usr@$ip - set timeout -1 - expect { - \"*no)?\" { - send \"yes\r\" - exp_continue - } - \"*assword:*\" { - send \"$passwd\r\" - exp_continue - } - \"*#\" { - send \"$cmd\r\" - exec sleep 1 - send \"exit\r\" - expect eof - } - } - " -} - |