search for: popen3

Displaying 20 results from an estimated 25 matches for "popen3".

Did you mean: popen
2008 May 30
1
[ win32utils-Bugs-20455 ] win32-open3: crashes after 170 popen3 operations
...at 2008-05-30 16:54 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=20455&group_id=85 Category: None Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: win32-open3: crashes after 170 popen3 operations Initial Comment: OS: XP w/SP2 C:\Documents and Settings\twasson>ruby -v ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] win32-open3 (0.2.5) After looping through an "Open3.popen3", the loop crashes with an IO error. We''ve tried a few things like other read ve...
2005 Mar 01
2
Open3.popen3 oddity
Open3.popen3 returns the pid as well as the in, out, and err streams. I thought only the streams were supposed to be returned. Thanks -- Nathaniel <:((><
2008 Mar 21
0
Fwd: Is select() untrustworthy on Windows when used with handles from popen3?
Any ideas? Dan ---------- Forwarded message ---------- From: Steve Shreeve <steve.shreeve at gmail.com> Date: Thu, Mar 13, 2008 at 10:51 AM Subject: Is select() untrustworthy on Windows when used with handles from popen3? To: djberg96 at gmail.com Dan, Thanks for your work on the win32util modules. I''ve created an expect-like library that allows one to easily script interactions with non-GUI applications. Everything works great when connecting to the target system using a socket, or using PTY.spawn o...
2005 Mar 01
5
Open3.popen3 bug
Running this program: require ''win32/open3'' i, o, e, pid = Open3.popen3("c:/ruby/bin/ruby.exe -e\"sleep 10\"") i.close Gives this result: C:\_co\source\build\web\temp>ruby t.rb t.rb:5: [BUG] Segmentation fault ruby 1.8.2 (2004-06-29) [i386-mswin32] This application has requested the Runtime to terminate it in an unusual way. Pleas...
2004 Oct 08
2
win32-popen3 just about ready
Hi all, Well, what''s in CVS at the moment is what I''m planning on releasing tomorrow, unless anyone has any objection. Please test, check out the docs, etc. Let me know if there''s anything fatal I''m missing. Regards, Dan
2006 May 29
3
[ win32utils-Patches-4603 ] [open3] set $? and return Process::Status with block call
...lution: None Priority: 3 Submitted By: John-Mason Shackelford (jpshackelford) Assigned to: Nobody (None) Summary: [open3] set $? and return Process::Status with block call Initial Comment: This is another version Samuel Tesla''s patch which sets $? and also returns the Process::Status when popen3/4 is called with a block (i.e. this patch merges changes from the two patches Samuel submitted). Note that this implementation is not thread-safe. As the attachment will demonstrate. ---------------------------------------------------------------------- You can respond by visiting: http://ruby...
2008 Jan 16
2
Problem with win32-open3 and net-ping
Hi all, I''m seeing strange behavior with net-ping on Windows, which uses win32-open3 (Open3.popen3) behind the scenes. Download (or checkout) net-ping and run this: ruby -Ilib test\tc_pingexternal.rb It looks like the test suite is running twice. What''s happening? Thanks, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unaut...
2004 Oct 06
0
Open3 progress
Hi all, I''ve got an initial version of Open3.popen3 checked into CVS, along with a test suite, a sample program and some of the usual files (README, etc). This is just Park''s win32_popen package stripped down and modified to match the Open3 API. So far, so good. For the first release, I''ve decided that we should strip it dow...
2006 Feb 08
2
[ win32utils-Feature Requests-3502 ] Allow win32-open3 to take a block
...Open Resolution: None Priority: 4 Submitted By: Daniel Berger (djberg96) Assigned to: Park Heesob (phasis68) Summary: Allow win32-open3 to take a block Initial Comment: I think we should allow win32-open3''s methods to take a block in the way that the Unix open3 module works, e.g. Open3.popen3(cmd){ |cmd_in, cmd_out, cmd_err| # ... } Each pipe should be closed via ensure as open3.rb does. This keeps the API compatible with the current Ruby API, and is probably a better way to use the module in general (since the pipes are guaranteed to be closed at the end of the block). Regards,...
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 =
2006 Apr 16
3
[ win32utils-Patches-4121 ] Make it possible to read process exit status
...s. It seems that one is not supposed to fiddle with /that/ variable, but we can make our own. This patch adds a #last_status method to both the Open3 and Open4 modules that returns a Process::Status object that is set when the pipes are closed (similarly to how Ruby does it in io.c). I also made popen3 and popen4 return the object when they''re called with a block. I figured it was as neat idea. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=413&aid=4121&group_id=85
2007 Jun 09
2
mystery problem with svn post-commit script running rspec tests
So, just spent seven straight hours on this. I have a post-commit svn script that runs all my tests. Emails me if something goes wrong. One of the lines looks like: @output = `rake test RAILS_ENV=test` The output from the rspec tests don''t seem to appear in @output. Why would that be? Oddly enough, that only seems to happen when the script is ran from svn''s post-commit
2006 May 29
0
[open3] Exit Status Patch
I''ve added another patch for the popen3 library which sets $? and adds Process::Status a return when popen3/4 is called with a block thus making it closer to the Open4. This is a merge of a couple of patches previously submitted by Samuel Tesla. http://rubyforge.org/tracker/index.php?func=detail&aid=4603&group_id=85&atid=413...
2006 Aug 16
7
Forward of moderated message
OK I know whats happening. Your while loop completes and calls kill on the worker before your task_progress controller method ever gets called> So the worker is deleted and when you try to access it from rails you get an error because there is no longer a worker at that job key. The kill method is meant to be used within a worker that you fire and forget. If you want to get the
2010 Aug 28
1
ANNOUNCE: Facter 1.5.8
...OEL not matching in operatingsystemrelease aeee83c Fixed #3410 - Warnings in rake spec 8bf8cb5 Fixes #3397 - is_virtual fact does not detect Linux-VServer 62b6773 Add kvm support to virtual fact dca615c fixes #2573, #2085, #1291 - fixes domain and fqdn facts resolution 86447c8 Revert "use popen3 in Resolution.exec" 7750f03 Fix #2341 - stricter handling of dmidecode split f4269d9 Fix #2746 - add architecture support for GNU/kFreeBSD 50cef83 Fix missing error case 356cf15 Remove whitespace in DMI facts (#3008, #3011) feecd39 Only ignore IPs starting with 127. 68fc123 Added package...
2002 Nov 20
1
Controlling smbclient from python weirdness
...his messes things up. I control smbclient via popen4() in python2.1. I've found this strange placement in the prompt to be the reason my code isn't working, via running smbclient like this: c = popen2.Popen4("smbclient //machine/c -N | tee /tmp/smb_out.txt) And watching smb_out.txt (Popen3() acts the same way). Is this likely to be an issue with how python talks to the process ? I have not included a test case in this mail because it would make it longer than it already is, but can provide one. Note that when I talk to the smbclient myself (via starting one from a shell) it appears...
2007 Mar 05
0
dynamic status back to client...
...ically get all the output to stdout the svn import command gives back. Like the following (but doesnt work for some reason): def do_stuff(args) require ''open3'' tmp = [] my_project = args[:repo] # Import the contents of a 20 Meg project into a bare bones svn repo. Open3.popen3("svn import #{path_to_extracted_zipdir} file://#{my_project}") do |stdin,stdout,stderr| while txt = stdout.gets tmp << txt results[:response] = tmp end end end But for a reason that eludes me I can''t seem to call open ever and if I require anythin...
2006 Jul 03
0
[ win32utils-Patches-4121 ] Make it possible to read process exit status
...s. It seems that one is not supposed to fiddle with /that/ variable, but we can make our own. This patch adds a #last_status method to both the Open3 and Open4 modules that returns a Process::Status object that is set when the pipes are closed (similarly to how Ruby does it in io.c). I also made popen3 and popen4 return the object when they''re called with a block. I figured it was as neat idea. ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2006-07-02 19:48 Message: Incorporated into 0.2.3. :) - Dan ------------...
2004 Dec 18
0
Removing COMSPEC from win32-open3
...ly be considered an error. That still leaves the SW_HIDE vs. SW_SHOW issue, though. (Possible solution) Create an Open3.show_window= method that accepts a boolean value. It would be the onus of the programmer to remember to set this to true if they want to create a GUI window of some sort using popen3 or popen4. Ok, I''m done thinking for a little while. :) Comments? Dan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2004 May 14
0
open3 test
Just for kicks, I thought I''d give the following a shot: require "win32/process" require "open3" sin,sout,serr = Open3.popen3("echo %PATH%") p sout.gets p serr.gets Returns nil for both, but hey, at least it doesn''t crash. :) Dan