similar to: Memory leak in system() command?

Displaying 20 results from an estimated 20000 matches similar to: "Memory leak in system() command?"

2002 Sep 19
1
ssh and popen-- broken pipe
Hi, My application uses popen to execute UNIX commands. After I replace rsh with ssh, it stopped working. I have made a test C code to reproduce the problem as attached in this email. In the test program, I called popen for ssh command and then pclose right away. I got the following error: kirk 588$ a.out Write failed flushing stdout buffer. write stdout: Broken pipe Any idea what is
2009 May 09
5
Reading large files quickly
I'm finding that readLines() and read.fwf() take nearly two hours to work through a 3.5 GB file, even when reading in large (100 MB) chunks. The unix command wc by contrast processes the same file in three minutes. Is there a faster way to read files in R? Thanks!
2009 Nov 26
3
Best way to preallocate numeric NA array?
These are the ways that occur to me. ## This produces a logical vector, which will get converted to a numeric ## vector the first time a number is assigned to it. That seems ## wasteful. x <- rep(NA, n) ## This does the conversion ahead of time but it's still creating a ## logical vector first, which seems wasteful. x <- as.numeric(rep(NA, n)) ## This avoids type conversion but still
2007 Jun 11
12
Mocking system/`
This drives me insane on a regular basis. How does one mock system(''blah'') or `blah` ? Adding expectations on Kernel doesn''t do it. Adding expectations on Object just makes me sad: Object.any_instance.expects(:system).with(''ls'') # => #<Mock:0x12b584e>.system(''ls'') - expected calls: 0, actual calls: 1 And this really
2005 Oct 16
2
Animated lissajous
Here's some code to make lissajous dance. I've attached a small sample GIF. Cheers, Rob Steele robsteele at yahoo dot com plot.lissajous = function(omega.x, omega.y, delta = 0, num.thetas = 200) { thetas = seq(0, 2 * pi, length = num.thetas) xs = sin(omega.x * thetas + delta) ys = cos(omega.y * thetas) plot(xs, ys, type = 'l', lwd = 3, ann = FALSE, axes = FALSE) }
2006 Aug 21
3
strange problem with system call
Hi, I am using backgroundrb to create a automated system of typo blogs.So, users can create new typo applications using web interface and all that jazz. Now..its working perfectly except one minor glitch. Since latest version of typo has a command called "typo", i simply use that command to install new typo app.And it works. def do_work(args) DIR =
2005 Mar 12
1
popen() fread() system()
I''ve got a client who''s recently been moved onto a CentOS4 machine from a 3.x and is writing: "It looks like there''s one remaining problem now; at several points in the PHP part of the dating software, C- binaries are called using popen(). The binaries work correct (tested at the command line with the proper arguments) The popen() retrieves the correct command
2006 Jan 05
4
Apache2 and popen
I''m running Apache2 on windows and I have a controller that issues a popen. class FileController < ApplicationController def index f = IO.popen("dir") @files = f.readlines end end This works using webbrick but on Apache produces... ---------- Errno::ENOENT in File#index No such file or directory - dir RAILS_ROOT: C:/www/teensymud/public/../config/..
2004 Nov 18
1
Forward from Laurent Julliard
Let''s try that again, without Hotmail''s crappy formatting. Dan, I am one of the developer of the FreeRIDE project (the Ruby IDE) and I''m in charge of the FreeRIDE debugger with which we have had a number of problems on Windows now mostly due to the clunky implementation of IO/Process/Signal stuff on Win32. I recently came across your Win32 utils package and
2018 Jul 13
2
Upgrade to 4.1.1 geo-replication does not work
Hi Kotresh, Yes, all nodes have the same version 4.1.1 both master and slave. All glusterd are crashing on the master side. Will send logs tonight. Thanks, Marcus ################ Marcus Peders?n Systemadministrator Interbull Centre ################ Sent from my phone ################ Den 13 juli 2018 11:28 skrev Kotresh Hiremath Ravishankar <khiremat at redhat.com>: Hi Marcus, Is the
2010 Jun 22
4
seek() and gzfile() on 32-bit R2.12.0 in linux
I have installed both 32-bit and 64-bit versions of R2.12.0 (2010-06-15 r52300) on my Ubuntu 10.04 64-bit system. I observe the following behavior when running the examples from base::connections. There appears to be a problem with seek() on a .gz file when using a 32-bit installation of R2.12.0, but the problem doesn't appear in the 64-bit installation. I realize that seek() has been
2001 Nov 27
3
Table Command (PR#1182)
Full_Name: Manisha Desai Version: 1.3.0 OS: UNIX Submission from: (NULL) (156.111.36.213) There may be a bug in the table command. The value of 0 does not appear to show up (at least in this version of R). The following is an example: > blah<-c(rep(1,100),rep(0,100)) > table(blah) Gives the following: blah 1 100 Doing a summary shows that blah does contain values of 0. >
2013 Jan 27
1
Modifying Xen migration
Hello everyone, for research purposes I''m working on Xen 3.0.3 and trying to make some modifications to Xen migration. By looking at the documentation, I''ve learned that the part I''m interesting in are handled by two binaries (xc_save and xc_restore), so I thought about modifying just this two binaries instead of recompiling the whole Xen everytime, so what I do is just
2018 Jan 15
5
glusterfs development library
I want to write a python script and visual interface to manage glusterfs, such as creating and deleting volumes.This can be easier to manage glusterfs? But,now ,I execute the glusterfs command using python's subprocess.popen function?such as subprocess.Popen(GLUSTER_CMD, shell=True,stdout=subprocess.PIPE, stderr=subprocess.PIPE)...... But this does not feel like a good program, Because it has
2006 Jul 13
1
Problems With IO.popen
Howdy. I am trying to launch an external shell process from my Rails app using IO.popen. The process runs just fine when I am logged in as the user from the shell but when I run it from Rails, the task doesn''t run properly and the output is too truncated to see any errors. Anything special I need to worry about when running shell tasks this way? I have code like the following:
2007 Jan 17
2
Using IO.popen to capture stderr?
Hello, I''m trying to write a utility to run an external process and capture it''s stderr. It seems that IO.popen only lets me read the stdout. Any tips for how to read stderr? Mike snippet of code... def process_file(filename) @filename = filename puts "Processing: " + @filename cmdline = "ffmpeg -i " + @filename ffmpeg =
2017 Aug 04
4
Filter files received on scp server
Hey, So, I would be looking at type A. Forgive me if my understanding of how OpenSSH operates is not reflective of reality. I am assuming that, the file transfer is happening somewhat logically, with a name being known, content written, blah blah. >From reading scp.c, it appears that, the client end at least knows the file name so I must assume the server end must be given it. I am hoping to
2018 Jan 15
0
glusterfs development library
Maybe consider extending the functionality of http://docs.ansible.com/ansible/latest/gluster_volume_module.html? Best regards, Marcin On Mon, Jan 15, 2018 at 11:53 AM, ?? <mrchenx at 126.com> wrote: > I want to write a python script and visual interface to manage glusterfs, > such as creating and deleting volumes.This can be easier to manage > glusterfs? > But,now ,I execute
2009 Apr 21
1
line wrap in R console under windows
I would like the R console to wrap lines at 80 cols. It does not do so, even though I have used the Rgui Configuration Editor to set the Console cols at 80 and the Pager cols at 80. Please tell me how to set it up so I have word wrap. Just to be clear: in older/other R versions, console input is wrapped at 80 cols and so you have something that looks like > blah blah blah blah blah blah blah
2011 Aug 25
2
replicate lines of data frame
Greetings! I am just now learning to use R for my dissertation project. I need to manipulate a lot of text and numeric data. I created a data frame that has 7 columns and 127 unique rows. Now I need to replicate each line 6 times and then later change values in the first 2 columns. I am trying to figure out how to accomplish this. I think that I need to use rep(my.df, each=6) but it does