473,549 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get gpg command output in rails?

24 New Member

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


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 1608

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

Similar topics

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 Account Additional, Sale_Additional so most tables stay the same. The latest restored database (I'll call it DBaseA) is behaving differently in VB6...
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 cal program every time the user come in page and display the output.Is there any system call?Can i do this ?
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 ----------------
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: 15.11.2005 12:06 <DIR> . 15.11.2005 12:06 <DIR> .. 15.11.2005 12:06 <DIR> MSN 15.11.2005 12:06 <DIR> TEMP .. ..
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
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 output is not the same as it was previously shown on the terminal screen. I think the output for the second part of the sort command is being directed to...
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). Can anybody please tell me why happening this? Thanx in advance. ###### process.pl###### #!/usr/bin/perl -w use CGI qw(:standard); print...
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 ie: set /p qry=what time would you like to meet: %qry% > C:\currenttime.txt I have created a much longer query which has several variables...
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 code below but having problems parsing out_ping ip_array = ('', '', '124.128.x.x') for i in ip_array: out_ping =...
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. Thanks -Babar
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.