#!/bin/sh . defs.inc || exit 3 info "This expect script does yet work" exit 0 expect - <\"\r \r Real name: " send -- "Harry H.\r" expect -exact "Harry H.\r \r \rEmail address: " send -- "hh@ddorf.de\r" expect -exact "hh@ddorf.de\r \r \rComment: " send -- "a test\r" expect -exact "a test\r \r \rYou selected this USER-ID:\r \"Harry H. (a test) (INSECURE!)\"\r \r Edit (N)ame, (C)omment, (E)mail or (O)kay? " send -- "o\r" expect -exact "o\r \r \rYou need a Passphrase to protect your secret key.\r \r Enter pass phrase: " send -- "abc\r" expect -ex "abc\r\n" expect -ex "\r \rRepeat pass phrase:\ " send -- "abc\r" expect -ex "abc\r\n" expect { -ex "public and secret key created and signed.\r" eof abort } EOF