I want to write a script that will run
gpg a file called "file" with the passphrase "test".
Normally, when I use
gpg, I usually just run
gpg -c file and it asks me for the passphrase. But since I want this script to do everything on its own, I would like to provide the passphrase as part of the command.
Now when I try to use:
gpg -c file --passphrase test, it outputs:
usage: gpg [options] --symmetric [filename]
Which seams like it wants me to use
gpg --passphrase test --symmetric file. But if I do that, it pops up a dialog asking me for the passphrase to use; which is not what I want.
How do I do set up the arguments correctly?