Hi guys :

Any help with this please!

script1.py in
x = 10
script2.py in
if x == 10:
print x
print "sorry"

how can apply this between two scripts in same network.

Thanks for all

Recommended Answers

My thought is to look into URL query strings. Example reading at http://www.compciv.org/guides/python/how-tos/creating-proper-url-query-strings/

Jump to Post

All 4 Replies

I mean when I executed script1.py which contain json-rpc command to execute script2.py in network but I want to send x value with it..this is how to do it?

script1.py has this also:

import json

headers = {
    'Content-Type': 'application/json',

data = '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"addonid":"script.activatewindowid"},"id":1}'

response = requests.post('', 
auth=('user', '1234'))

and I want to add x = 10 in script1.py and send it to script2.py in

Thanks for all

Can I do it with udpsocket ?

commented: Can't see why not. +15
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.