The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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-22-2007 02:06 AM
need help with some commands please mujtba UNIX for Dummies Questions & Answers 2 01-14-2005 02:49 PM
sed commands dbrundrett Shell Programming and Scripting 7 09-28-2004 06:11 PM
commands kironpmullamkuz Security 2 06-28-2002 12:45 AM
BDS Commands bbutler3295 UNIX for Dummies Questions & Answers 3 03-04-2002 08:28 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-17-2005
rgard rgard is offline
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?
  #2 (permalink)  
Old 11-20-2005
mschwage mschwage is offline
Registered User
  
 

Join Date: Jul 2005
Location: Oak Park, IL
Posts: 102
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
Closed Thread

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0