PGP commands

i have successfully executed a PGP encrytp command with the following:

"echo `pgp --encrypt filename --recipient user-key` > $fromDir/.encrypt"

However, when i attempt to issue a decrypt command with following:

"echo `pgp --decrypt filename --passphrase passphrase`" > $fromDir/.decrypt

i get nothing. All files and directories referenced are present and, like the encrypt command, this command works fine when entered on a command line. What am i missing?

I don't know about the problem because I don't usually use pgp, but it seems like the echo command is redundant. If the pgp produces output on stdout, why echo it? Just redirect it into the file.

Actually, it seems like your double-quotes are in the wrong place. But your extra echoing seems to be confusing matters, and breaking your script.
-Mike