How can I run a python script on server A that can add entries to a list-item in another python script on server B? (Needs to be hyperefficient.)
Are there any easy solutions (or modules) that help with this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I use xmlrpclib to call functions remotely.
Make a function that appends values to a global array, then register the function with xmlrpclib and call it from machine B.
It’s pretty easy to use. Here is a good starting point: http://docs.python.org/2/library/xmlrpclib.html#boolean-objects
Made an example:
Then test/use it like so