473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1603

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

Similar topics

1
by: Sandie Towers | last post by:
We use a number of similar databases and frequently create a new database using a backup restore of another similar database. We try to keep changes between databases in _Additional tables - like...
1
by: Overl0rd | last post by:
Hey ,i have a webpage and i want to take the output from a unix command and display it in my html page.I don't have php.I use only html code and javascript.For example i want to execute the unix...
1
by: mark | last post by:
Hi all, Can anyone tell me why this code fails to return the output parameter from the SP. VB.Net Code ----------------
5
by: peter.pan | last post by:
Can someone give me a help? A need to create a program, that will simulate imput and output from command line. For example, I write in program dir "c:\program files\" and in the screen appear: ...
3
by: A.M | last post by:
Hi, How can I run an OS command and have the command's output (to stdout) in my string variable? For example in windows, this command should return a list of files within
0
by: octavia | last post by:
Hi everyone. I am having trouble redirecting the standard output from using the sort command on an existing file. When I do the following sort -t- -k 1.1,2.2 -k 3.2,3.3n $file.txt >temp.txt The...
1
by: rahulja | last post by:
Hi EveryBody, I am beginner in perl. I am trying for following program for displaying no. of license on apache. But it is giving 0 output in browser. But in command line it comes number (e.g. 25)....
1
by: 663jiffy | last post by:
Hi, Small question here I have created a bat file which allows a user to enter numerous values which are substituted into a command line query, the results of which are outputted to a text file...
1
by: dragrid | last post by:
would like to read and parse certain fields from multiple lines ( say lines 5 and 9 and the first and sixth fields respectively) from the variable of the file the command output created tried this...
4
by: Babar Farooq | last post by:
Folks, I'm trying to execute a command on a router and then storing that output to a variable e.g. $output..I don't know how to do it in Pearl..Any help would be appreciated in this regard. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.