Scripts

Daryl Krauter dkrauter@getesuite.com
Tue Jun 26 23:46:01 2001


ls -l $theDir |\
 awk '/^-/ { print $9 }' |\
 while read filename
 do
   cat /path/to/your/passphrase |\
     gpg --batch --yes --passprhase-fd 0 -se -r $recipient \
        -o $theDir/$filename.gpg $theDir/$filename
 done

Note: This assumes the variables 'theDir' and 'recipient'
are set to what you want. Obviously, you'll need to modify
the path to your passphrase. It also assumes that your
'options' file is setup appropriately.

Warning: Anyone at your site who can read a script will
know what your passphrase is using this method.




> -----Original Message-----
> From: gnupg-users-admin@gnupg.org [mailto:gnupg-users-admin@gnupg.org]On
> Behalf Of Erich Kolb
> Sent: Tuesday, June 26, 2001 4:01 PM
> To: gnupg-users@gnupg.org
> Subject: Scripts
>
>
> Does anyone happen to have a shell script that will automatically encrypt
> all files in a directory?
>
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users