[ python-Bugs-1463104 ] problems with os.system and shell redirection on Windows XP

SourceForge.net noreply at sourceforge.net
Sun Apr 2 19:18:41 CEST 2006


Bugs item #1463104, was opened at 2006-04-02 17:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1463104&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Manlio Perillo (manlioperillo)
Assigned to: Nobody/Anonymous (nobody)
Summary: problems with os.system and shell redirection on Windows XP

Initial Comment:
Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310
32 bit (Intel)] on win32 - Windows XP SP2

N.B. sorry for italian error messages.


With the following script:

# redirection.py
import os
import sys


os.system(sys.argv[1])


----------------

When doing:
redirection.py "dir" > redirection.txt

I obtain:
Spazio su disco insufficiente.


Instead with:
redirection.py "svn help" > redirection.txt

svn: Errore di scrittura: Bad file descriptor


This is a Python problem because with an equivalent
program written in C++:

// redirection.c++
#include <cstdlib>


int main(int argc, char** argv) {
  std::system(argv[1]);
    }

---------------------------------


there are no problems.




Thanks and regards  Manlio Perillo

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1463104&group_id=5470


More information about the Python-bugs-list mailing list