Answer the question
In order to leave comments, you need to log in
How to access daemon's I/O threads in linux?
My program has this structure:
def UserInterface():
while(True):
print("hello")
tmp = input()
...
def payload():
while(True):
#Something code
def main():
Thread(target=UserInterface, args=()).start()
Thread(target=payload, args=()).start()
Answer the question
In order to leave comments, you need to log in
The normal daemon doesn't work through stdin/stdout/stderr. You should look towards named pipe or unix socket - these are such special files. And ideally, you need to interact via TCP so that you can cling to the telnet program there (but better - with encryption, via ssh).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question