472,126 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,126 software developers and data experts.

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 1536

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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.