I have two codes in python language in two systems. The first code must be run then its output will be used as the input of the second code on another system. How I can transfer data between these two codes?
Asked
Active
Viewed 65 times
1 Answers
0
In case you would need to use output of one script as input of another, but on a same system that would be nice example for usage of pipelines (example can be checked on next link: Pipe between python scripts)
But as far as I understood you, you have 2 separate systems, which means you will need sockets for cross-system communication. Very basic example of server/client communication can be found on next link: Basic Python client socket example
If applications on both systems are having other tasks as well, note that you will have to implement listener in separate thread, so for that you will most likely need basic example of threading in python: How to use threading in Python?
Good luck!

user5214530
- 467
- 5
- 11