aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx17
1 files changed, 5 insertions, 12 deletions
diff --git a/kvmx b/kvmx
index c90528e..0bf3889 100755
--- a/kvmx
+++ b/kvmx
@@ -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