Displaying 20 results from an estimated 6000 matches similar to: "Problems With IO.popen"
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 =
2008 Feb 03
2
Ruby IO on brand new xserve with Leopard Server
Hi
I''m using princexml pdf generation in one of our apps and bump into
this very weird problem. On our ubuntu box and local machines
(MacBook Pro) pdfs are generated flawlessly. On the production xserve
(running the rails app in production mode on a mongrel cluster), a
2.8 GHz Quad-Core Intel Xeon, strange things start happening. The
following sections give back nil values in
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
2008 Aug 26
5
undefined method
I''m trying to pass a method to another object/method as a variable.
Example one, login 1 works just fine.
def login1
@driver.Login(username, password)
end
However, if I try to pass "Login" to the driver as an argument
(example two Login 2), I get "undefined method `command_string'' for
#<SOAP::RPC::Driver:0x316dc28>"
"Login" is a legit
2019 Aug 29
3
[SOLVED] Re: LMTP Post login script for acl_groups
On 29.8.2019 12.18, R.N.S. via dovecot wrote:
>
>> Am 28.08.2019 um 20:02 schrieb Aki Tuomi via dovecot <dovecot at dovecot.org>:
>>
>>
>>> On 28/08/2019 21:01 R.N.S. via dovecot <dovecot at dovecot.org> wrote:
>>>
>>>
>>>> Am 28.08.2019 um 19:46 schrieb Jakobus Sch?rz via dovecot <dovecot at dovecot.org>:
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
2019 Aug 30
1
[SOLVED] Re: LMTP Post login script for acl_groups
On 29.8.2019 12.30, R.N.S. via dovecot wrote:
>
>> Am 29.08.2019 um 11:23 schrieb Aki Tuomi via dovecot <dovecot at dovecot.org>:
>>
>>
>> On 29.8.2019 12.18, R.N.S. via dovecot wrote:
>>>> Am 28.08.2019 um 20:02 schrieb Aki Tuomi via dovecot <dovecot at dovecot.org>:
>>>>
>>>>
>>>>> On 28/08/2019 21:01
2019 Aug 29
1
[SOLVED] Re: LMTP Post login script for acl_groups
> Am 29.08.2019 um 11:30 schrieb R.N.S. via dovecot <dovecot at dovecot.org>:
>
>
>
>> Am 29.08.2019 um 11:23 schrieb Aki Tuomi via dovecot <dovecot at dovecot.org>:
>>
>>
>> On 29.8.2019 12.18, R.N.S. via dovecot wrote:
>>>
>>>> Am 28.08.2019 um 20:02 schrieb Aki Tuomi via dovecot <dovecot at dovecot.org>:
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/..
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
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
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,
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
2005 Nov 23
8
a question about popen() performance on domU
Dear all,
When I 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
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 reap subprocess
> Abort trap
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
2007 Feb 28
3
[ win32utils-Bugs-8942 ] several typo in windows-pr.
Bugs item #8942, was opened at 2007-02-28 23:59
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=411&aid=8942&group_id=85
Category: windows-pr
Group: Code
Status: Open
Resolution: None
Priority: 3
Submitted By: Katsuyuki MIYAMUKO (miyamuko)
Assigned to: Nobody (None)
Summary: several typo in windows-pr.
Initial Comment:
I found typo in windows-pr.
Attached
2019 Aug 29
0
[SOLVED] Re: LMTP Post login script for acl_groups
> Am 28.08.2019 um 20:02 schrieb Aki Tuomi via dovecot <dovecot at dovecot.org>:
>
>
>> On 28/08/2019 21:01 R.N.S. via dovecot <dovecot at dovecot.org> wrote:
>>
>>
>>> Am 28.08.2019 um 19:46 schrieb Jakobus Sch?rz via dovecot <dovecot at dovecot.org>:
>>>
>>> I think, i had the same problem as you.
>>>
2019 Aug 28
5
LMTP Post login script for acl_groups
> On 28/08/2019 21:01 R.N.S. via dovecot <dovecot at dovecot.org> wrote:
>
>
> > Am 28.08.2019 um 19:46 schrieb Jakobus Sch?rz via dovecot <dovecot at dovecot.org>:
> >
> > I think, i had the same problem as you.
> >
> > When dovecot runs lmtp, no user is logged in, so there is no user from
> > which you can get groups. So i think, my
2004 Nov 18
0
FW: problem with win32 waitpid
Forward from Laurent Julliiard. Any suggestions anyone?
Dan
>From: Laurent Julliard <Laurent.Julliard@xrce.xerox.com>
>Reply-To: laurent@moldus.org
>To: djberg96@hotmail.com
>Subject: problem with win32 waitpid
>Date: Thu, 18 Nov 2004 08:49:51 +0100
>
>Dan,
>
>I am one of the developer of the FreeRIDE project (the Ruby