stop killing randomly, when using less mode
Change-Id: I59f52622a32f82a81b4b237aff2e7f3cfd89e96f
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -19,11 +19,11 @@ instance=$2 | ... | @@ -19,11 +19,11 @@ instance=$2 |
19 | LOG=$ONOS_INSTALL_DIR/$KARAF_DIST/instances/$instance/data/log/karaf.log || \ | 19 | LOG=$ONOS_INSTALL_DIR/$KARAF_DIST/instances/$instance/data/log/karaf.log || \ |
20 | LOG=$ONOS_INSTALL_DIR/log/karaf.log | 20 | LOG=$ONOS_INSTALL_DIR/log/karaf.log |
21 | 21 | ||
22 | -trap "ssh $remote 'ps -ef | grep \"tail -n 512\" | grep -v grep | cut -c10-15 | xargs kill'" EXIT | ||
23 | 22 | ||
24 | if [ $less -eq 1 ]; then | 23 | if [ $less -eq 1 ]; then |
25 | ssh -t $remote "less $LOG" | 24 | ssh -t $remote "less $LOG" |
26 | else | 25 | else |
26 | + trap "ssh $remote 'ps -ef | grep \"tail -n 512\" | grep -v grep | cut -c10-15 | xargs kill'" EXIT | ||
27 | ssh $remote " | 27 | ssh $remote " |
28 | while true; do | 28 | while true; do |
29 | echo ================================================================== | 29 | echo ================================================================== | ... | ... |
-
Please register or login to post a comment