linux - Is it possible to have python open a terminal and write to it? -


for example, if have code:

subprocess.call(['gnome-terminal']) 

is possible have python output strings specific terminal opened? thanks!

possibly, easier have custom process running in subordinate terminal. example, given sserv.py example server in documentation command:

 gnome-terminal -e "python ./sserv.py" 

will happily chat on port 9999 you. given more complex sserv.py want (anything terminalish, is).


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -