Inter-process communication, how?

ecir.hana at gmail.com ecir.hana at gmail.com
Sun Dec 16 05:41:59 EST 2007


On Dec 16, 6:38 am, Dennis Lee Bieber <wlfr... at ix.netcom.com> wrote:
>
>
>         Read the details for subprocess.Popen() again...
>
> """
> /args/ should be a string, or a sequence of program arguments. The
> program to execute is normally the first item in the args sequence or
> string, but can be explicitly set by using the executable argument.
> """
>
> IOWs, passing it what you would enter on a command line
>
> "subscript.py tempfilename"
> ["subscript.py", "tempfilename"]
>
> should be sufficient.
>

>
>         There is a module that can generate temporary file names, though for
> this usage you could even do something to obtain the parent program
> process ID along with a timestamp and create a file name from all that.
> What are the odds that your "several times" would have the same clock
> time?
>

Quite small, I guess. However, perhaps I should better consider using
sockets.

Thanks!

ps: I really like how you format the paragraphs! :)



More information about the Python-list mailing list