3

I'm running a terminal application in /dev/pts/X terminal that has its own console as:

       enter image description here

What I need is to run commands specific to this application but from another terminal.

Using ttyecho does not work as it interacts with the shell not with the application running on the shell.

slm
  • 369,824
psycic
  • 51
  • Could you elaborate please? What commands? Do you want to use one terminal emulator to launch commands in another? – terdon Jul 07 '14 at 10:08
  • i need to run commands specific to this console but from another terminal/python script – psycic Jul 07 '14 at 10:14
  • 1
    Ah, OK, you can do this using ttyecho as described here. I will close this as a duplicate. If the linked answer does not solve it for you, please [edit] to explain how it failed and the post will be reopened. – terdon Jul 07 '14 at 10:27
  • Did you try it? I tried with an interactive python shell open in the other terminal and it executed the python commands I passed it. – terdon Jul 07 '14 at 10:38
  • 1
    hmm sorry! thanks for your inputs mistake was on my side now i am able to run it perfectly thanks again – psycic Jul 07 '14 at 10:47
  • @psycic - does ttyecho not work for you? The edit to your Q is confusing at the end. – slm Jul 07 '14 at 12:14

0 Answers0