This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Thekent
Recipients Thekent
Date 2011-04-10.07:45:38
SpamBayes Score 1.8102055e-08
Marked as misclassified No
Message-id <1302421540.99.0.957938249964.issue11820@psf.upfronthosting.co.za>
In-reply-to
Content
attempting to run an os.system command under the idle 3 shell swallows the out put.
Idle 3 is running on a 32 bit kde mandriva linux.

>>> import os
>>> os.system('ls')
0
>>> os.system('pwd')
0


as you can see it returns a 0 indicating successful completion, but no output. However os.getcwd works perfectly.

>>> os.getcwd()
'/home/kent/Documents' 

running the same code from python in an xwindow terminal works fine.

apparently the idle shell does not echo the the standard output or error output as the python interpreter does.
History
Date User Action Args
2011-04-10 07:45:41Thekentsetrecipients: + Thekent
2011-04-10 07:45:40Thekentsetmessageid: <1302421540.99.0.957938249964.issue11820@psf.upfronthosting.co.za>
2011-04-10 07:45:39Thekentlinkissue11820 messages
2011-04-10 07:45:38Thekentcreate