"Fossies" - the Fresh Open Source Software Archive

Member "afio-2.5.2/script3/pgp_read" (30 Nov 2018, 577 Bytes) of package /linux/misc/afio-2.5.2.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    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