From: Simon Strandgaard Date: 2006-12-21T01:00:43+09:00 Subject: Re: how to expect eof with expect+pty On 12/20/06, Jonathan Hudson wrote: [snip] > If you don't care about overwriting, doesn't "--yes" remove the > overwrite prompt (it does interactively) ? > > PTY.spawn("gpg --yes -c #{filename}") > Its for my daily repository backup. I didn't knew about the '--yes' option, this helps alot. Thanks -- Simon Strandgaard http://opcoders.com/