boat73, it sounds like the process user doesn't have read access to your public key. Therefore, it's dying with "need something to encrypt with." Try a test script where you just list the keys you have access to. . .
- - arden.
ps please use <CODE> tags next time. . .