我想用ping扫描打开一个xterm,我怎么不希望脚本停止,直到xterm关闭。
我正在使用
xterm -hold -e ping localhost
脚本看起来像
#!/bin/bash
echo "hello"
xterm -hold -e ping localhost
echo "the script did not halt"
echo "see the script is going and xterm is running at the same time"
答案 0 :(得分:1)
只需将&
xterm -hold -e ping localhost &