moss

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

moss-init-with-passphrase.expect (198B)


      1 set keyfile [lindex $argv 0]
      2 set phrase [lindex $argv 1]
      3 spawn ./moss.rb init ${keyfile}
      4 expect passphrase
      5 send "${phrase}\r"
      6 interact
      7 catch wait result
      8 set STATUS [ lindex $result 3 ]
      9 exit $STATUS