Hi, there
Andrew Gould
AndrewGould at shannonhealth.org
Tue Sep 4 11:22:22 EDT 2001
Have you tried os.popen instead? For example:
a = os.popen('ls').readlines()
will execute ls and assign the results to the variable a.
I hope this helps.
Andrew
> ----------
> From: Rafael Mentz Aquino[SMTP:rafael at zumnet.com.br]
> Sent: Tuesday, September 04, 2001 10:14 AM
> To: python-list at python.org
> Subject: Hi, there
>
> Hi, everybody! I'm new on this list and a begginer with Python,
> with special interests in Tkinter.
>
> I hope I can help and get help from here ;-)
>
> Let me start with a little problem...?
>
> I'm making an experience, but I can't put the result of an os.system
> to a variable.... just the exit status....
>
> How can I read the stdout to solve that..?
>
> Thanks already!!!!
>
> Rafael Mentz Aquino
> Porto Alegre - Brazil
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
More information about the Python-list
mailing list