![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |