Hello, I have spent considerable amount of time to make the PGP encryption work and thinking that I must be missing something. Here is the back ground.
Perl Version - Default version 5.8.4 on Solaris 10
PGP : PGP Command line freeware 6.5.8 installed on solairs
When I run the pgp encrytion command directly on the Solaris, its working like a charm and doing everything that I ask it to do, but the problem comes when I invoke thru a perl script. Its just creating a empty asc file but not writing anything to that file and cursor is just stuck there.
$dataFile = '/opt/ExportedPGPKeys/SampleData.txt';
$isEncrypted = `pgp -ea +batchmode $dataFile @sys`;
print " The output value is $isEncrypted \n";
If I run another command like
ls instead of the PGP command thru the perl script then its working.
Did anyone come across this situation or any pointers will be grateful.
Thanks
newbie
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.