[Tutor] pass argument into running program *outside* of program

James jtp at nc.rr.com
Fri Aug 22 16:32:35 CEST 2008


Thanks for the responses, folks. I started poking around and another
option is Pyro (an alternative to xml-rpc when dealing solely with
Python).

Thanks again!
-j

On Fri, Aug 22, 2008 at 10:12 AM, Robert Berman <bermanrl at embarqmail.com> wrote:
>
> Excellent idea. Its simplicity makes it both doable with ease and very
> reliable. Thanks for this suggestion.
>
> Robert
>
> Alan Gauld wrote:
>
> "Alan Gauld" <alan.gauld at btinternet.com> wrote
>
> $ program.py addMe <username> <var2>
>
> create the server with a socket that listens for clients on a port
> create a client that talks to the socket via that port.
>
>
> Other options, cruder but arguably simpler, involve sharing a database and
> using one table for input and another for output. The server polls the input
> table and writes output to
> the output table, the clients write requests into the input table and read
> their results out from the output table.
>
> This is surprisingly efficient and scaleable, I've had servers handling
> several hundred simultaneous clients using this scheme. Its very good where
> reliability and resiliance are important because even if the machine goes
> dowen the clients and servers can restart and pick up where they left off.
>
> Just a thought...
>
> Alan G.
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>



-- 
"Do not meddle in the affairs of wizards, for they are subtle and
quick to anger."
 -Tolkien


More information about the Tutor mailing list