Linux

특정 pts에서 프로그램 실행하기

구차니 2021. 9. 27. 16:33

단순하게

$ echo "ls" > /dev/pts/1

을 실행하면

해당 터미널에서 ls 라고만 나오지 실행이 되진 않는다.

 

누군가가 만들어 둔 ttyecho 라는 예제 프로그램만 눈에 보이네..

[링크 : https://www.humbug.in/2010/utility-to-send-commands-or-data-to-other-terminals-ttypts/]

  [링크 : https://unix.stackexchange.com/questions/260503/how-do-i-run-a-command-in-a-different-tty]

[링크 : https://stackoverflow.com/questions/24725051/execute-a-command-in-another-terminal-via-dev-pts]

[링크 : https://admin-ahead.com/forum/general-linux/execute-a-command-on-a-different-ttypts/]