From b5828f0ff9eee13c194c16ac8a74f5f4c5ec9974 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Thu, 19 Dec 2013 09:03:23 +0100 Subject: [PATCH] Extended README with explanation about STDOUT and STDERR --- Labb5/serverbackup/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Labb5/serverbackup/README.md b/Labb5/serverbackup/README.md index 037ba2e..33ba401 100644 --- a/Labb5/serverbackup/README.md +++ b/Labb5/serverbackup/README.md @@ -27,3 +27,10 @@ on your tape device. You can place your script wherever you on your system. When the script runs it will cd into your Proxmox backups files and perform it's action from there. +All error messages are printed to STDERR and all normal messages are printed to +STDOUT. Because of this you can run this script headless and save the output +in separate logfiles depending on whatever it's an error or normal messages. +For example you can it like this: +```bash +./serverbackup.sh > backupmessages.log 2> backuperrors.log +```