Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要编写一个 bash 脚本,它会生成一个新的 xterm 窗口并在那里回显某些内容。我试过echo "hello" | xterm &了,但它不起作用......此外,是否可以在新的 xterm 上执行任何命令?
echo "hello" | xterm &
xterm -e "echo "HELLO"; bash"
将保持窗口打开
xterm -e echo "hello". 一般来说,xterm -e anyprogram.
xterm -e echo "hello"
xterm -e anyprogram