>>521
hoge.shに以下のように書いておく。

xterm -e sh -xc 'cp a.txt b.txt; set +x; echo -n Hit any KEY:; read key'