/ dev / tty1でスクリプトを実行し、/ dev / tty2で実行するプログラムを生成し、それが完了するのを待って、スクリプト内の他のコマンドを実行することは可能ですか?例えば:
echo "Hello, this is from terminal 1"
chvt 2
sh myprogram.sh (I want it to run on tty2, but it runs on tty1)
chvt 1
myprogram.sh:
echo "Hello' this is from terminal 2, please type your input:"
read A
exit A