lilalo
diff lm-ssh @ 29:b3f5f5560802
l3-cgi: Найти курс по PATH_INFO
HISTORY: Описаны изменения в версии v_0_2_4
l3-frontend: В секции "О программе" убрал разрыв строки
HISTORY: Описаны изменения в версии v_0_2_4
l3-frontend: В секции "О программе" убрал разрыв строки
author | devi |
---|---|
date | Mon Nov 07 13:28:15 2005 +0200 (2005-11-07) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/lm-ssh Mon Nov 07 13:28:15 2005 +0200 1.3 @@ -0,0 +1,31 @@ 1.4 +#!/bin/sh 1.5 +#\ 1.6 +exec expect -- "$0" ${1+"$@"} 1.7 +eval spawn ssh $argv 1.8 +set timeout 1 1.9 +expect { 1.10 + eof { 1.11 + } 1.12 + "(yes/no)? " { 1.13 + send "yes\n" 1.14 + exp_continue 1.15 + } 1.16 + assword: { 1.17 + send "rootpass\n" 1.18 + } 1.19 + timeout { 1.20 + interact -nobuffer 1.21 + } 1.22 +} 1.23 +expect { 1.24 + eof { 1.25 + } 1.26 + assword: { 1.27 + send "rootpass\n" 1.28 + } 1.29 + 1.30 + timeout { 1.31 + interact -nobuffer 1.32 + } 1.33 +} 1.34 +