View Single Post
Posts: 958 | Thanked: 483 times | Joined on May 2010
#146
no matter what i change ListCmd to be

Code:
fin,fout = os.popen("ls -al")

ListCmd = "ps -ef"
fin,fout = os.popen4(ListCmd)

etc
it still crashes with a segmentation fault. is there a bug with Python?! or is my phone the problem? hmmmmmmm.

if i create a test.py with

Code:
import os

fin,fout = os.popen4("ls -al")
print fout.read()
everything works fine.

Last edited by droll; 2011-06-10 at 09:59.