是否可以在 /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
我的程序.sh:
echo "Hello' this is from terminal 2, please type your input:"
read A
exit A