I am writing a shell script and I would like to write commands in the script but redirect the output to other konsole sessions. (using kde)
Linux – Redirecting shell command outputs to another konsole shell
bashlinuxshellunix
bashlinuxshellunix
I am writing a shell script and I would like to write commands in the script but redirect the output to other konsole sessions. (using kde)
Best Answer
First, look for the number that identifies the current tty session; lets consider the number as
X
:Then, use the given number to write to the tty selected:
And it will produce: