"Fossies" - the Fresh Open Source Software Archive

Member "sawdog-2.4/services/ssh" (28 Jul 2006, 223 Bytes) of package /linux/privat/old/sawdog-2.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/expect -f
    2 
    3 set env(TERM) vt100
    4 
    5 set timeout 10
    6 match_max 100000
    7 
    8 spawn ssh $argv -o StrictHostKeyChecking=no
    9 expect "password" {
   10 #    send -- "quit\r"
   11 #    expect eof {
   12         exit 0
   13 #    }
   14 #    exit 1
   15 }
   16 exit 1