1 #!/bin/sh 2 # 3 # This example shows how to configure afio to read pgp encrypted archives. 4 # 5 # Setting the PGPPASS environment variable is unsafe. 6 # 7 # If you are using bash, you can use the input redirection by opening a second 8 # input stream linked to a file containing your pass phrase. Be careful about 9 # that file's permissions! 10 # 11 # working with any shell, but unsafe: 12 # 13 #export PGPPASS="your pass phrase" 14 # afio -iv -Z -P "pgp" -Q "-fd" archive_file 15 # 16 # better, only working with bash(?): 17 # 18 export PGPPASSFD=3 19 afio -iv -Z -P "pgp" -Q "-fd" -3 3 archive_file 3<passphrase_file