2017-06-14 11 views
0

xtermをpingスキャンで開きたいのですが、xtermが終了するまでスクリプトを停止させたくない場合があります。xtermを開いて実行を続行するBASHスクリプト

私はスクリプトが

#!/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

のように見えるだけ&と、バックグラウンドでそれを置く

xterm -hold -e ping localhost 

を使用しています:

xterm -hold -e ping localhost & 
+0

はそのいただきありがとうございます。よく働く! – theloosegoos

関連する問題