s****n 发帖数: 700 | 1 I am going to automatically run some comands after launching xterm.
For example,
xterm -e ssh -t HOST "cd /DIR && /bin/bash -i -l"
will launch xterm , ssh to HOST, and go to the directory DIR.
I am going to do a little bit more complicated work by using awk.
the follow below is the script I wrote, however it failed to run. Is
anyone could help me out on this ?
xterm -fg white -bg black -geom 36x7+2150+731 -T buran -e ssh -t buran
"tail -f /home/cmtd/keb/comm0.log | awk '{if( /Initial Margin/ ) p |
|