diff options
-rwxr-xr-x | kvmx | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -556,24 +556,17 @@ function kvmx_status { # Print guest log function kvmx_log { - local blank_line="" + local logs="" if [ -s "$LOGFILE" ]; then - blank_line="1" - echo "In $LOGFILE:" - echo "" - cat $LOGFILE + logs="$logs $LOGFILE" fi if [ -s "$SPICEFILE" ]; then - if [ ! -z "$blank_line" ]; then - echo "" - fi - - echo "In $SPICEFILE:" - echo "" - cat $SPICEFILE + logs="$logs $SPICEFILE" fi + + tail -F $logs } # Dispatch |