[issue481218] popen4 fails if cmd is unicode.

2022-04-10 Thread admin
Change by admin : -- github: None -> 35516 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue225891] windows popen4 crashes python when not closed correctly

2022-04-10 Thread admin
Change by admin : -- github: None -> 33596 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue225891] windows popen4 crashes python when not closed correctly

2022-04-10 Thread admin
Change by admin : -- github: None -> 33596 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: popen4 - get exit status

2012-08-28 Thread Tim Johnson
* Dennis Lee Bieber wlfr...@ix.netcom.com [120828 07:11]: On Mon, 27 Aug 2012 15:43:59 -0800, Tim Johnson t...@akwebsoft.com declaimed the following in gmane.comp.python.general: * Benjamin Kaplan benjamin.kap...@case.edu [120827 15:20]: The popen* functions are deprecated. You should use

popen4 - get exit status

2012-08-27 Thread Tim Johnson
In bash I do the following: linus:journal tim$ /home/AKMLS/cgi-bin/perl/processJournal-Photo.pl hiccup -bash: /home/AKMLS/cgi-bin/perl/processJournal-Photo.pl: No such file or directory linus:journal tim$ echo $? 127 In python, use os.popen4 I do the following: fin,fout =

Re: popen4 - get exit status

2012-08-27 Thread Dave Angel
processes is by using the poll() or wait() methods on the Popen3 http://docs.python.org/library/popen2.html#popen2.Popen3 and Popen4 http://docs.python.org/library/popen2.html#popen2.Popen4 classes; these are only available on Unix. This information is not available when using the popen2() http

Re: popen4 - get exit status

2012-08-27 Thread Benjamin Kaplan
On Aug 27, 2012 3:47 PM, Tim Johnson t...@akwebsoft.com wrote: In bash I do the following: linus:journal tim$ /home/AKMLS/cgi-bin/perl/processJournal-Photo.pl hiccup -bash: /home/AKMLS/cgi-bin/perl/processJournal-Photo.pl: No such file or directory linus:journal tim$ echo $? 127 In python,

Re: popen4 - get exit status

2012-08-27 Thread Tim Johnson
* Benjamin Kaplan benjamin.kap...@case.edu [120827 15:20]: The popen* functions are deprecated. You should use the subprocess module instead. No, I'm stuck with py 2.4 on one of the servers I'm using and there will not be an upgrade for a few months. I'm really trying to set up something

Re: popen4 - get exit status

2012-08-27 Thread Tim Johnson
/popen2.html The only way to retrieve the return codes for the child processes is by using the poll() or wait() methods on the Popen3 http://docs.python.org/library/popen2.html#popen2.Popen3 and Popen4 http://docs.python.org/library/popen2.html#popen2.Popen4 classes; these are only available

[issue761888] popen2.Popen3 and popen2.Popen4 leaks filedescriptors

2010-08-18 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue761888 ___

nested popen4

2008-10-04 Thread julian
Hi all, I know it's a kind of bizarre question but here I go: I want to execute an script using popen4. This script executes a command in turn using popen4 too. The first one throws a 256 exit code. Any suggestions? Thanks J. -- http://mail.python.org/mailman/listinfo/python-list

Re: nested popen4

2008-10-04 Thread Terry Reedy
julian wrote: Hi all, I know it's a kind of bizarre question but here I go: I want to execute an script using popen4. This script executes a command in turn using popen4 too. The first one throws a 256 exit code. Any suggestions? Popen4 is gone in 3.0 and I presume deprecated in 2.6, replaced

[issue761888] popen2.Popen3 and popen2.Popen4 leaks filedescriptors

2008-01-20 Thread Christian Heimes
Changes by Christian Heimes: -- versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue761888 ___ Python-bugs-list mailing list

Re: popen4 not returning output

2007-08-20 Thread Michael Bentley
On Aug 19, 2007, at 8:58 PM, [EMAIL PROTECTED] wrote: I am trying to run the following script: #!/usr/bin/python import popen2 commandToRun = scp scp_trial.py [EMAIL PROTECTED]:/targetDirectory #commandToRun = ls print commandToRun p_out, p_in = popen2.popen4 (commandToRun) theOut

popen4 not returning output

2007-08-19 Thread hortitude
I am trying to run the following script: #!/usr/bin/python import popen2 commandToRun = scp scp_trial.py [EMAIL PROTECTED]:/targetDirectory #commandToRun = ls print commandToRun p_out, p_in = popen2.popen4 (commandToRun) theOut = p_out.readlines () print theOut When I run this command

Re: popen4 not returning output

2007-08-19 Thread James Stroud
[EMAIL PROTECTED] wrote: I am trying to run the following script: #!/usr/bin/python import popen2 commandToRun = scp scp_trial.py [EMAIL PROTECTED]:/targetDirectory #commandToRun = ls print commandToRun p_out, p_in = popen2.popen4 (commandToRun) theOut = p_out.readlines () print

Re: popen4 not returning output

2007-08-19 Thread James Stroud
James Stroud wrote: [EMAIL PROTECTED] wrote: I am trying to run the following script: #!/usr/bin/python import popen2 commandToRun = scp scp_trial.py [EMAIL PROTECTED]:/targetDirectory #commandToRun = ls print commandToRun p_out, p_in = popen2.popen4 (commandToRun) theOut

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2007-07-11 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Closed Resolution: Accepted Priority: 5 Private: No Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2007-07-10 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Closed Resolution: Accepted Priority: 5 Private: No Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2007-07-10 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Closed Resolution: Accepted Priority: 5 Private: No Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2007-07-10 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Closed Resolution: Accepted Priority: 5 Private: No Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails

proper way to use popen4

2006-06-13 Thread micklee74
hi i have to execute some SQL statements against a database using a SQL client i want to use the os.popen4 module can someone correct the way i use os.popen4? thanks fin = select * from some_table #sql statement client = osql server user password #sql client syntax fin, fout = os.popen4(client)

Re: wait() on Popen4 object from thread?

2006-05-30 Thread Grant Edwards
On 2006-05-30, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Tue, 30 May 2006 03:01:54 -, Grant Edwards [EMAIL PROTECTED] declaimed the following in comp.lang.python: watching = False You do realize that this is a LOCAL definition, and is NOT the same watching your

Re: wait() on Popen4 object from thread?

2006-05-30 Thread Grant Edwards
On 2006-05-30, Grant Edwards [EMAIL PROTECTED] wrote: doesn't V However, the presence/absence of the global affect whether the OSError happens or not. -- Grant Edwards grante

wait() on Popen4 object from thread?

2006-05-29 Thread Grant Edwards
I'm having problems calling the Popen4 object wait() method from a thread. The folloing program produces an error on some machines (but seems to work on others) --8-- import time import threading import popen2 def monitorThread

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2006-04-10 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Closed Resolution: Accepted Priority: 5 Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails sporadically

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2006-03-24 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Closed Resolution: Accepted Priority: 5 Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails sporadically

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2006-03-23 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails sporadically

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2006-03-23 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails sporadically

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2006-03-23 Thread SourceForge.net
, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails sporadically

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2006-03-23 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: Accepted Priority: 5 Submitted By: Taale Skogan (tskogan) Assigned to: Neal Norwitz (nnorwitz) Summary: Popen4 wait() fails sporadically

Howto? popen4(python -u script.py) redirected to a gui window

2006-01-27 Thread André
Short description: Using a wxPython based app, I would like to take a python script in an editor window, invoke the python interpreter and use another window as stdin/stdout/stderr. Based on what I've read so far, I've figured that I need to do something like: f_in, f_out = popen4(python -u

*Almost working* :-( popen4(python -u script.py) redirected to a gui window

2006-01-27 Thread André
Earlier this evening, I wrote: Short description: Using a wxPython based app, I would like to take a python script in an editor window, invoke the python interpreter and use another window as stdin/stdout/stderr. [snip] Ok, I got almost everything working ... except the stdin redirection. I'm

Solved: popen4(python -u script.py) redirected to a gui window

2006-01-27 Thread André
Sorry about the single-author thread; I have been googling for answers and trying out for 3 nights... I just want to record to save others the trouble. Earlier this evening, I wrote: Short description: Using a wxPython based app, I would like to take a python script in an editor window,

Re: popen4

2005-10-19 Thread Ralf Muschall
Ganesan Rajagopal wrote: Try pexpect instead. http://pexpect.sourceforce.net/ ^ That's a content-free ad site. You probably mean sourceforGe. Ralf -- http://mail.python.org/mailman/listinfo/python-list

Re: popen4

2005-10-18 Thread billie
Piet van Oostrum wrote: I think you need something like pyexpect for this. PyExpect seems to be no more mantained. -- http://mail.python.org/mailman/listinfo/python-list

Re: popen4

2005-10-18 Thread Ganesan Rajagopal
billie == billie [EMAIL PROTECTED] writes: Piet van Oostrum wrote: I think you need something like pyexpect for this. PyExpect seems to be no more mantained. Try pexpect instead. http://pexpect.sourceforce.net/ Ganesan -- Ganesan Rajagopal (rganesan at debian.org) | GPG Key:

Re: popen4

2005-10-17 Thread Piet van Oostrum
billie [EMAIL PROTECTED] (b) wrote: b Hi all. I'm trying to execute system commands and capture the output by b using popen4: b stdout example: exec_cmd = popen2.popen4(echo hello!) output = exec_cmd[0].read() b hello b stderr example: exec_cmd = popen2.popen4(echobv hello!) output

popen4

2005-10-16 Thread billie
Hi all. I'm trying to execute system commands and capture the output by using popen4: stdout example: exec_cmd = popen2.popen4(echo hello!) output = exec_cmd[0].read() hello stderr example: exec_cmd = popen2.popen4(echobv hello!) output = exec_cmd[0].read() Unrecognized command The problem

[ python-Bugs-1101756 ] popen4/cygwin ssh hangs

2005-10-03 Thread SourceForge.net
thread, including the initial issue submission, for this request, not just the latest update. Category: Threads Group: None Status: Closed Resolution: Works For Me Priority: 5 Submitted By: Ph.E (ph_e) Assigned to: Jason Tishler (jlt63) Summary: popen4/cygwin ssh hangs Initial Comment: The following

[ python-Bugs-768649 ] popen4 doesn't close filedescriptors when in Threads

2005-05-30 Thread SourceForge.net
of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.2.2 Status: Closed Resolution: Wont Fix Priority: 5 Submitted By: martin doudoroff (mdoudoroff) Assigned to: Nobody/Anonymous (nobody) Summary: popen4 doesn't

[ python-Bugs-1183780 ] Popen4 wait() fails sporadically with threads

2005-04-15 Thread SourceForge.net
Resolution: None Priority: 5 Submitted By: Taale Skogan (tskogan) Assigned to: Nobody/Anonymous (nobody) Summary: Popen4 wait() fails sporadically with threads Initial Comment: Calling wait() on a popen2.Popen4 object fails intermittently with the error Traceback (most recent call last

[ python-Bugs-768649 ] popen4 doesn't close filedescriptors when in Threads

2005-01-15 Thread SourceForge.net
: None Priority: 5 Submitted By: martin doudoroff (mdoudoroff) Assigned to: Nobody/Anonymous (nobody) Summary: popen4 doesn't close filedescriptors when in Threads Initial Comment: Running the following code under Linux will result in a crash on the 508th thread started. The error is OSError

[ python-Bugs-1101756 ] popen4/cygwin ssh hangs

2005-01-13 Thread SourceForge.net
Priority: 5 Submitted By: Ph.E (ph_e) Assigned to: Nobody/Anonymous (nobody) Summary: popen4/cygwin ssh hangs Initial Comment: The following python code hangs on executing cmd2 (works with cmd1). The commands works fine when executed on a shell. I have the same problem with Python 2.3.4 and 2.4