Ever heard of the tool "expect"? Looks to me as if it would be perfect fit for scripting encfs.
Not a member of The Register? Create a new account here.
Remember me on this computer? Post anonymously?