Mmmm voici ce que dit la doc Python 2.4:
-
- Execute the command (a string) in a subshell. This is implemented by calling
the Standard C function system(), and has the same
limitations.
os.system() permet d'exécuter une commande dans une boite ms-dos,
rien de plus. Je ne vois pas comment cela pourrait controler un prog
déjà ouvert
| popen( |
command[, mode[,
bufsize]]) |
- Open a pipe to or from command. The return value is an open file
object connected to the pipe, which can be read or written depending on whether
mode is
'r' (default) or 'w'. The
bufsize argument has the same meaning as the corresponding argument
to the built-in open() function.
os.popen() crée un tunnel d'E/S vers un fichier et le lie à la commande que tu entre en premier paramètre
Cela te guide-t'il un tant soit peut

____________________________________________________________
Quand les brebis enragent, elles sont pires que les loups