Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old August 9th, 2004, 12:34 PM
jfranz jfranz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 11 jfranz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 43 sec
Reputation Power: 0
PgP Script

I have pgp installed and wanted to make a batch file to execute on a directory automatically. Its a Windows 2k box. Hourly the scripts are being sent with a new file name every hour. I have tried using the c:\* and every other wildcard, but just keep on getting error messages in pgp with file does not exists. Ex: synatx of a good filename c:\test.pgp. How do I get around this. Ultimately I want a script to run hourly that would decrypt the whole directory looking for .pgp files.

Reply With Quote
  #2  
Old August 10th, 2004, 10:14 AM
jlk's Avatar
jlk jlk is offline
Perl Jedi
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: New Hampshire
Posts: 108 jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 10 h 41 m 53 sec
Reputation Power: 15
Quote:
Originally Posted by jfranz
I have pgp installed and wanted to make a batch file to execute on a directory automatically. Its a Windows 2k box. Hourly the scripts are being sent with a new file name every hour. I have tried using the c:\* and every other wildcard, but just keep on getting error messages in pgp with file does not exists. Ex: synatx of a good filename c:\test.pgp. How do I get around this. Ultimately I want a script to run hourly that would decrypt the whole directory looking for .pgp files.


You may want to install perl on your system and work around this issue. If I remember correctly, PGP handles one file at a time when encrypting/decrypting (although I could be wrong). You could have a perl script create an array of the files in the directory where the encrypted files are to get a complete list, and then feed in the names one at a time to the pgp command. If you do use perl, you may also want to check CPAN to see if there is a module to do this already.

Regards,

jlk

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > PgP Script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway