lilalo
view lm-ssh @ 12:8d40b1921934
Поправил ссылку при генерении журнала.
| author | devi | 
|---|---|
| date | Sat Jun 04 17:58:20 2005 +0300 (2005-06-04) | 
| parents | |
| children | 
 line source
     1 #!/bin/sh
     2 #\
     3 exec expect -- "$0" ${1+"$@"}
     4 eval spawn ssh $argv
     5 set timeout 1
     6 expect {
     7 	eof { 
     8 	}
     9 	"(yes/no)? " {
    10 		send "yes\n"
    11 		exp_continue 
    12 	}
    13 	assword: {
    14 		send "rootpass\n"
    15 	}
    16 	timeout {
    17 		interact -nobuffer
    18 	}
    19 }
    20 expect {	
    21 	eof { 
    22 	}
    23 	assword: {
    24 		send "rootpass\n"
    25 	}
    27 	timeout {
    28 		interact -nobuffer
    29 	}
    30 }	
