[SLE] working with active log files
I need to automate Lotus Domino startup and shutdown. The Lotus Notes is one of those apps that dumps stuff to the 'console' as it runs. I need to capture this in a file which I will do by redirecting the output to a file callec console.log. The Domino server must stay running 24/7. I would like the log to be "cut" daily into a file named: console20000527.log and then gziped. how would I go about cutting the log daily? I know that I should use cron, but how do I create the filename that has the date at the end? How do I get the contents of the active log file (console.log) into the dated log file? How do I clear out the active log file while it is still being used by the Domino server? Should I do all this in one long command in cro or should I put it in a script file? Sam -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Am Mon, 29 Mai 2000 schrieb Sam Carleton:
I need to automate Lotus Domino startup and shutdown. The Lotus Notes is one of those apps that dumps stuff to the 'console' as it runs. I need to capture this in a file which I will do by redirecting the output to a file callec console.log. ok.
The Domino server must stay running 24/7. I would like the log to be "cut" daily into a file named: console20000527.log and then gziped. how would I go about cutting the log daily?
if it is not to busy a log: cp log log.copy I know that I should use cron,
but how do I create the filename that has the date at the end? cp log log. `date +%<formatoptions>`
How do I get the contents of the active log file (console.log) into the dated log file? see #2.
How do I clear out the active log file while it is still being used by the Domino server? use "> console.log" . check the behavior of domino. consult domino-doku if needed.
Should I do all this in one long command in> cro or should I put it in a script file? script is tidier
best dan am -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (2)
-
Anonymous User
-
suse@dertext.de