auto decrypt in unix
Steve Butler
sbutler@fchn.com
Tue Sep 16 18:39:01 2003
This is a multi-part message in MIME format.
------=_NextPart_000_17D71_01C37C37.024DBB40
x-gfisavedcharset: iso-8859-1
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
for x in *
do
cat ./passphrase | ./gpg --batch --passphrase-fd 0 --no-tty --out
${x#.*}.txt --decrypt $x
done
Isn't the Korn shell nice!
- --Steve Butler
Oracle Administrator
First Choice Health Network
sbutler@fchn.com <mailto:sbutler@fchn.com>
206-268-2309
- -----Original Message-----
From: Frank Hernandez [mailto:FHernand@COMPSERVINC.COM]
Sent: Tuesday, September 16, 2003 8:36 AM
To: gnupg-users@gnupg.org <mailto:gnupg-users@gnupg.org>
Subject: auto decrypt in unix
Hello to all!
I'm trying to decrypt files that I ftp from my vendor. The following
works for one file, but I having problems creating a auto- decrypt all
the files in the directory /usr2/edi
Any help would be great!
cd /usr2/edi
cat ./passphrase | ./gpg -bactch -passphrase-fd 0 -out CS001.txt
-decrypt CS002.810
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32) - WinPT 0.7.96
iD8DBQE/ZzxkVxXIgBsy1UsRAntIAKCGqLoVkLI10kI/gtK69EXRPEdWugCffysL
QXDiaHy5wjimYitsR+8sbCw=
=Qycv
-----END PGP SIGNATURE-----
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
------=_NextPart_000_17D71_01C37C37.024DBB40
x-gfisavedcharset: iso-8859-1
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><FONT face=Arial color=#0000ff size=2>-----BEGIN PGP SIGNED
MESSAGE-----<BR>Hash: SHA1</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>for x in *<BR>do<BR> cat
./passphrase | ./gpg --batch --passphrase-fd 0 --no-tty --out<BR>${x#.*}.txt
--decrypt $x<BR>done</FONT></DIV>
<DIV> </DIV><FONT face=Arial color=#0000ff size=2>
<DIV><BR>Isn't the Korn shell nice! </DIV>
<DIV> </DIV>
<DIV>- --Steve Butler<BR>Oracle Administrator<BR>First Choice Health
Network<BR><A
href="mailto:sbutler@fchn.com">sbutler@fchn.com</A><BR>206-268-2309</DIV>
<DIV> </DIV>
<DIV><BR>- -----Original Message-----<BR>From: Frank Hernandez
[mailto:FHernand@COMPSERVINC.COM]<BR>Sent: Tuesday, September 16, 2003 8:36
AM<BR>To: <A
href="mailto:gnupg-users@gnupg.org">gnupg-users@gnupg.org</A><BR>Subject: auto
decrypt in unix</DIV>
<DIV> </DIV>
<DIV><BR>Hello to all!</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I'm trying to decrypt files that I ftp from my vendor. The
following<BR>works for one file, but I having problems creating a auto- decrypt
all<BR>the files in the directory /usr2/edi</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Any help would be great!</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>cd /usr2/edi </DIV>
<DIV> </DIV>
<DIV>cat ./passphrase | ./gpg -bactch -passphrase-fd 0 -out
CS001.txt<BR>-decrypt CS002.810</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Frank</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>-----BEGIN PGP SIGNATURE-----<BR>Version: GnuPG v1.2.1 (MingW32) -
WinPT 0.7.96</DIV>
<DIV> </DIV>
<DIV>iD8DBQE/ZzxkVxXIgBsy1UsRAntIAKCGqLoVkLI10kI/gtK69EXRPEdWugCffysL<BR>QXDiaHy5wjimYitsR+8sbCw=<BR>=Qycv<BR>-----END
PGP SIGNATURE-----<BR></FONT></DIV></BODY></HTML>
<HTML><BODY><P><FONT color=#000000 face="Arial" size=2>CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.<BR></FONT></BODY></HTML>
------=_NextPart_000_17D71_01C37C37.024DBB40--