The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
code that reads commands from the standard i/p and executes the commands Phrozen Smoke High Level Programming 4 01-21-2007 11:06 PM
need help with some commands please mujtba UNIX for Dummies Questions & Answers 2 01-14-2005 11:49 AM
sed commands dbrundrett Shell Programming and Scripting 7 09-28-2004 02:11 PM
commands kironpmullamkuz Security 2 06-27-2002 08:45 PM
BDS Commands bbutler3295 UNIX for Dummies Questions & Answers 3 03-04-2002 05:28 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-17-2005
Registered User
 

Join Date: Sep 2005
Posts: 5
PGP commands

i have successfully executed a PGP encrytp command with the following:

"echo `pgp --encrypt filename --recipient user-key` > $fromDir/.encrypt"

However, when i attempt to issue a decrypt command with following:

"echo `pgp --decrypt filename --passphrase passphrase`" > $fromDir/.decrypt

i get nothing. All files and directories referenced are present and, like the encrypt command, this command works fine when entered on a command line. What am i missing?
Reply With Quote
Forum Sponsor
  #2  
Old 11-19-2005
Registered User
 

Join Date: Jul 2005
Location: Oak Park, IL
Posts: 100
I don't know about the problem because I don't usually use pgp, but it seems like the echo command is redundant. If the pgp produces output on stdout, why echo it? Just redirect it into the file.

Actually, it seems like your double-quotes are in the wrong place. But your extra echoing seems to be confusing matters, and breaking your script.
-Mike
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0