How do I shell-out on Win32 systems with python?

Arpad Kiss sekter at mail.matav.hu
Mon Oct 11 18:01:53 EDT 1999


Hi,
Try to use the win32pipe modul! Here is an example:

import win32pipe
i,o,e=win32pipe.popen3("dir")
pout=o.readlines()
perr=e.readlines()
....

Arpad

----- Original Message ----- 
From: yinger <ayinger1 at my-deja.com>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Monday, October 11, 1999 10:56 PM
Subject: How do I shell-out on Win32 systems with python?


> I know that on Unix systems you can use the commands  or the popen
> modules.
> 
> What do I have to do to get the output from a command (like 'dir', or a
> batch file) executed on a Win32 system?
> 
> 
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.
> 
> -- 
> http://www.python.org/mailman/listinfo/python-list
> 





More information about the Python-list mailing list