Execute the command (a string) in a subshell. This is implemented by calling
the Standard C function <tt class=\"cfunction\">system()</tt>, 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
* : <nobr><tt class =\\"function\\" id=\\"l2h-1531\\" xml:id=\\"l2h-1531\\">popen</tt>(</nobr>,
<var>command</var>[<var>, mode</var>[<var>,
bufsize</var>]<var></var>]<var></var>)
Open a pipe to or from <var>command</var>. The return value is an open file
object connected to the pipe, which can be read or written depending on whether
<var>mode</var> is
'r'
(default) or
'w'
. The
<var>bufsize</var> argument has the same meaning as the corresponding argument
to the built-in <tt class=\"function\">open()</tt> 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