![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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? |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|