Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can i change the value of variables of other running script by other?

Status
Not open for further replies.

vsdpsingh

Programmer
Mar 8, 2011
32
0
0
IN
This is just a thaught, but may be helpful for me in many scenarios. Is it possible to change the variables of one running script, using or invoking other script.
OR we can say like that..
Can i access variables of other script using mine script.

Operating System : Linux

Scenarios where it can be useful, i am building an application where user can copy paste objects between tabs, in this case i can hold values in variables. But if user wants to paste in the same application but invoked from other terminal, in this case i will not be able to access what ever is copied.

I tried with clipboard option, but will not work for me in particular scenarios (because some graphical objects are also needs to be pasted)
 
The answer is "yes, but not easily". One way is to use sockets. It's not hard but it does take some doing. Next, in Tk, you can use "send". Also, I suppose you could consider "threading".

_________________
Bob Rashkin
 
thanks.
I will start looking under suggested options. If face any issue, will ask for help.
thanks once again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top