[Pm-utils] [PATCH 4/6] Do not overwrite the log, just append to it.
Victor Lowther
victor.lowther at gmail.com
Mon Mar 17 17:35:44 PDT 2008
It might come in handy to have more than one run's worth of data in the log.
---
pm/pm-functions.in | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pm/pm-functions.in b/pm/pm-functions.in
index 0d8d73f..8c080f6 100644
--- a/pm/pm-functions.in
+++ b/pm/pm-functions.in
@@ -183,7 +183,8 @@ init_logfile()
return 1
fi
export LOGGING=true
- exec > "$1" 2>&1
+ exec >> "$1" 2>&1
+ log "---MARK---"
log "$(date): $0 running."
}
--
1.5.4.3
More information about the Pm-utils
mailing list