Issue1748

classification
Title: subprocess and os.system doesnt show output
Type: behaviour Severity: normal
Components: Versions: Jython 2.5
process
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, ssteiner, zyasoft
Priority: low Keywords:

Created on 2011-05-25.15:08:33 by ssteiner, last changed 2014-05-21.23:04:00 by zyasoft.

Messages
msg6527 (view) Author: simon steiner (ssteiner) Date: 2011-05-25.15:08:32
in python i get:
OSError: Drive already SUBSTed

in jython i get:
OSError


import subprocess
p_subst = subprocess.Popen('subst z: "c:\\"',  shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
errmsg = p_subst.communicate()[0]
if p_subst.returncode != 0:
    raise OSError(errmsg)
msg6529 (view) Author: simon steiner (ssteiner) Date: 2011-05-26.08:34:05
also doesnt output 'Drive already SUBSTed'

import os
os.system('subst z: "c:\\"')
History
Date User Action Args
2014-05-21 23:04:00zyasoftsetnosy: + zyasoft
2013-11-26 20:39:02fwierzbickisetfiles: - g-c44.html
2013-11-25 14:47:50hunterbowler31setfiles: + g-c44.html
2013-11-21 22:52:57jeff.allensetfiles: - ll44.html
2013-11-19 20:06:56hunterbowler31setfiles: + ll44.html
2013-02-19 21:15:55fwierzbickisetpriority: low
nosy: + fwierzbicki
resolution: remind
versions: + Jython 2.5, - 2.5.0
2011-05-26 08:34:45ssteinersettitle: subprocess doesnt show error -> subprocess and os.system doesnt show output
2011-05-26 08:34:05ssteinersetmessages: + msg6529
2011-05-25 15:08:33ssteinercreate