[PIPython] problemi con il modulo os

Ernesto e.picardi
Mer 20 Lug 2005 17:23:53 CEST


grazie per l'aiuto ora funziona!
----- Original Message -----
From: "Carlo C8E Miron" <carlo.miron a gmail.com>
To: "Gli utilizzatori italiani di Python" <python a lists.python.it>
Sent: Wednesday, July 20, 2005 2:40 PM
Subject: Re: [PIPython] problemi con il modulo os


> Il 20/07/05, Ernesto<e.picardi a unical.it> ha scritto:
> > Ciao a tutti,
> > ho un problema con l'uso del modulo os. Ho creato uno script che tramite
il
> > modulo cgi prende delle informazioni da una pagina web. Le informazioni
sono
> > recuperate correttamente. Il problema scatta quando utilizzo queste
> > informazioni per avviare un secondo script di elaborazione. Mi spiego
meglio
> > dopo il recuparo delle informazioni, ho aggiunto una riga di comando:
> >
> > os.system('mioscript.py %s' %(informazioni))
> >
> > Purtroppo lo script mioscript.py non viene eseguito. Ho provato con
altre
> > funzioni del modulo os quali os.name e os.listdir('.') e funzionano
> > correttamente.
> >
> > Cosa puņ essere successo? C'č un modo alternativo a os.system() ?
>
> perche' non metti il codice di mioscript.py dentro una
miafunc(informazioni),
> e fai semplicemente::
>
> import mioscript
> mioscript.miafunc(informazioni)
>
> ?
>
> --
> Carlo C8E Miron, ICQ #26429731
> --
> Disclaimer:
> If I receive a message from you, you are agreeing that:
> 1. I am by definition, "the intended recipient".
> 2. All information in the email is mine to do with as I see fit and
>  make such financial profit, political mileage, or good joke as it
>  lends itself to. In particular, I may quote it on USENET or the WWW.
> 3. I may take the contents as representing the views of your company.
> 4. This overrides any disclaimer or statement of confidentiality that
>  may be included on your message.
> _______________________________________________
> La mailing list di python.it
> python a lists.python.it
> http://lists.python.it/cgi-bin/mailman/listinfo/python



More information about the Python mailing list