search for: popen

Displaying 20 results from an estimated 508 matches for "popen".

Did you mean: open
2005 Nov 23
8
a question about popen() performance on domU
...compared the performance of some application on both a Xen domU and a standard linux machine (where domU runs on a similar physical mahine), I notice the application runs faster on the domU than on the physical machine. Instrumenting the application code shows the application spends more time on popen() calls on domU than on the physical machine. I wonder if xenlinux does some special modification of the popen code to improve its performance than the original Linux popen code? Thanks in advance for your help. Xuehai _______________________________________________ Xen-devel mailing list Xen-de...
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 (I''ve echo''d it) popen() returns true The pointer set by popen() is a valid resource. Yet, nothing happens; the binaries should always return output, put...
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/../con...
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 follow...
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 f...
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 = IO.popen(cmdline, "w+") ffmpeg.c...
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 a serious dependence on the shell Is there a python or c library/function to execute the glusterfs command?So I can develop a be...
2008 Mar 13
0
popen pipe connection occasionally fails
Hi all, I am encountering the following crash-causing bug using popen on occasion. I haven''t been able to narrow it down yet, but I am curious if anyone else has seen it or may have more information for me: Workers::DviToPng::PipeProtocol > terminate called after throwing an instance of ''std::runtime_error'' > what(): unable to re...
2018 Jul 13
2
Upgrade to 4.1.1 geo-replication does not work
...(/urd-gds/gluster):1780:connect_remote] SSH: Initializing SSH connection between master and slave... [2018-07-11 18:42:49.363514] E [syncdutils(/urd-gds/gluster):304:log_raise_exception] <top>: connection to peer is broken [2018-07-11 18:42:49.364279] E [resource(/urd-gds/gluster):210:errlog] Popen: command returned error cmd=ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i /var/lib/glusterd/geo-replication/secret\ .pem -p 22 -oControlMaster=auto -S /tmp/gsyncd-aux-ssh-hjRhBo/7e5534547f3675a710a107722317484f.sock geouser at urd-gds-geo-000 /nonexistent/gsyncd --session-owner 5...
2010 Feb 02
3
Generating a PDF using popen and wkhtmltopdf
As described on wkhtmltopdf Google group (http://code.google.com/p/wkhtmltopdf/issues/detail?id=162), I have a problem generating a PDF while using popen and wkhtmltopdf. wkhtmltopdf takes HTML code as input and ouputs a PDF file. Here is what I''m doing: command = ''"C:\Program Files\wkhtmltopdf\wkhtmltopdf.exe" - - -q'' IO.popen(command, ''r+'') do |f| # Writing the html previously...
2004 Nov 18
1
Forward from Laurent Julliard
...in32 process as a replacement for the native Ruby implementation. I currently have a problem which is the following: Somewhere in my code I have this: require ''win32/process'' command = "start CMD /K ruby -e ''while true { sleep 0.1; }''" @inp = @out = IO.popen(command,"w+") # this is the regular Ruby popen #.... getting the pid of the ruby process (pid variable) Process.waitpid(pid) puts "Process stopped" exit When I run this code I always get the following error: waitpid: no child process (Process::Win32::ProcessError) I suspect...
2013 Jan 27
1
Modifying Xen migration
...o binaries instead of recompiling the whole Xen everytime, so what I do is just modifying this two binaries, recompile them with "make tools" and then copy them into /usr/lib64/xen/bin/ . However, after doing this, when running the migration command (xm migrate domain destination) I got a popen error. What am I doing wrong? Please have a look at the log below if it could be useful. Thanks a lot in advance! Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/xen/xend/XendCheckpoint.py", line 211, in save forkHelper(cmd, fd, saveInputHandler, False,...
2006 Jul 18
0
ffmpeg and IO.popen
i?m fairly new to ruby... any suggestions getting the below to work... i?d like to use myfile_field.read within encodeVideo and then self.data = Student_Interviews.flv class Myfile < ActiveRecord::Base . . . def encodeVideo opts #, stream IO.popen(?ffmpeg #{opts}?, ?w?)#{ |io| io.puts stream} end def myfile=(myfile_field) if myfile_field and myfile_field.length > 0 encodeVideo ?-i /tmp/Student_Interviews.mov -ar 22050 -ab 64 -f flv -s 320?240 /tmp/Student_Interviews.flv?#, myfile_field.read #self.data = myfile_field.read self.filename...
2008 Jan 15
4
popen woes
From: "Michael S. Fischer" <michael at dynamine.net> > > I wanted my worker program (which uses EM) to pass the user''s password > to the Expect script via standard input in order to avoid some > security hazards associated with alternatives such as storing it in a > file or in the environment, either of which may be observed by others > logged into the
2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...unctions.py create mode 100644 scripts/storage.py diff --git a/scripts/ovirtfunctions.py b/scripts/ovirtfunctions.py new file mode 100644 index 0000000..f2b9e39 --- /dev/null +++ b/scripts/ovirtfunctions.py @@ -0,0 +1,672 @@ +#!/usr/bin/python +import subprocess +import os +from subprocess import Popen, PIPE, STDOUT +import tempfile +import string +import sys + + +OVIRT_LOGFILE="/var/log/ovirt.log" +OVIRT_TMP_LOGFILE="/tmp/ovirt.log" +# label of the oVirt partition +OVIRT_LABEL="OVIRT" +# configuration values are loaded in the following order: +# 1. /etc/sysconfig/no...
2018 Jan 15
0
glusterfs development library
...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 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 a serious > dependence on the shell > Is there a python or c library/function to execute the glusterfs > comm...
2008 Oct 17
2
R script from Python
...n. I'm using R 2.7.2, Python 2.5 and WinXP. I don't won't to use Python/R interface because of nature of project. Python code : import subprocess command = 'c:\\Program Files\\R\\R-2.7.2\\bin\\Rterm.exe --vanilla -q <d:\\test\\run\\geneBank.r> d:\\output.out' subprocess.Popen(command).wait() After that, I get error messages on Rterm.exe terminal : ARGUMENT 'd<:\lloydMax.r>' __ignored__ ARGUMENT 'd:\output.txt' __ignored__ Why ? [[alternative HTML version deleted]]
2011 Aug 31
1
[PATCH node] fix install when VG exists on disk
....com> --- scripts/storage.py | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/storage.py b/scripts/storage.py index 5f7f0e3..047bcd1 100644 --- a/scripts/storage.py +++ b/scripts/storage.py @@ -90,13 +90,19 @@ class Storage: vg = subprocess.Popen(vg_cmd, shell=True, stdout=PIPE, stderr=STDOUT) vg_output = vg.stdout.read() for vg in vg_output: - pvs = system("pvscan -o pv_name,vg_uuid --noheadings | grep \"%s\" | egrep -v -q \"%s%s[0-9]+|%s \"") % (vg, dev, part_delim, dev) -...
2006 Jun 06
6
Speakin of the Devil..
Hi. How can one embed PHP into their rhtml files (located in the views folder? I''d like to use those JD library graphical plugs that use PHP... I''ve already added .rhtml to the php extension in apache''s httpConfig.. Insights or the truth would be appriciated. Dominic Son -- Posted via http://www.ruby-forum.com/.
2009 Jan 31
9
Maxima and Ruby Integration
I''m looking to write a javascript heavy clientside program with a something serverside backend that connects to the free maxima math program. I have extensive knowledge of ruby on rails, so I would prefer to call Maxima with ruby, but I don''t know if this is even possible. Its fairly easy to call Maxima (with a lisp implementation) using ANSI C, it is a little less easy to