[relug] Problemi di python

  • From: Pier <p.mattioli@xxxxxxxxxxxx>
  • To: relug@xxxxxxxxxxxxx
  • Date: Tue, 1 Mar 2005 11:09:28 +0100

Ciao mi sono imbattuto in un problema ad usare python e bittorrent e ho
pensato che tra voi ci possa essere qualcuno che mi sa aiutare.

Il mio problema e' molto semplice: lanciare bittorrent in background,
tipo " btdounloadheadless fiule.torrent > btdload.out &"
Il fatto e' che "&" lo fa inchiodare all'istante.

Questo comando lo dovrei lanciare da python dunque in un modo tipo:

os.system(" btdounloadheadless fiule.torrent > btdload.out &")

 oppure con 

os.spawnlp(os.P_NOWAIT, "btdownloadheadless", "btdownloadheadless",
str(filename))


 nel secondo caso non saprei come fare a fargli ridirigere l'output in
un file ( questo mi serve perche' possa essere letto successivamente
dallo script che ha lanciato bittorrent).

Qualsiasi idea e' benvenutissima!

        -Pier-

Other related posts: