469,326 Members | 1,478 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,326 developers. It's quick & easy.

How to get gpg command output in rails?

scenario:
---------

Need to upload the gpg encrypted file.
Get that file and do decryption and store the output in a file
Then extract that file and get the actual output

Problem:
-----------

If I execute that command via command line, it was executed successfully. But via system command it was not running. The decrypted output will have control character. I think due to that it was not able to write that into a file.

command I used:
--------------
system("gpg --output outfile.tgz --decrypt infile.tgzaa")

After executed the above command, outfile.tgz is creating with zero byte size.

Kindly advise me to achieve this .
Nov 10 '10 #1
0 1482

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Overl0rd | last post: by
5 posts views Thread by peter.pan | last post: by
3 posts views Thread by A.M | last post: by
reply views Thread by octavia | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.