~
 I find useful while coding/debugging separating the errors from the
output + errors, even if the programming language doesn't allow for
that:
~
 
http://coding.derkeiler.com/Archive/Java/comp.lang.java.programmer/2012-08/msg01347.html
~
 in this case however I can't get (Linux) time to log into the
output+errors log file. It just spits its output on standard err (not
the err + out I am trying to redirect it to)
~
 There must be some syntactic error in my statement. Can you see it?
~
 lbrtchx
 debian-user@lists.debian.org: Linux time not redirecting output to log file ...
~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~
_SRC="/media/sdb1/cmllpz/ace_verizon"
_DEST="/media/sdd1/tmp/test/test1"

_PRFX="rsync_"${_DEST##*/}"_"

export _DT=$(date +%Y%m%d%H%M%S_%s);
_ERR=${_PRFX}${_DT}".err.log"
_ERR_OUT=${_PRFX}${_DT}".out_err.log"
echo "// __ \${_DT}: |"${_DT}"|";
echo "// __ \${_ERR}: |"${_ERR}"|";
echo "// __ \${_ERR_OUT}: |"${_ERR_OUT}"|";

date > ${_ERR_OUT}; (time rsync --archive --verbose ${_SRC} ${_DEST}
2>&1 >&3 | tee ${_ERR} >&3) 3>> ${_ERR_OUT}; date >> ${_ERR_OUT}

ls -l ${_PRFX}${_DT}*.log

wc -l ${_PRFX}${_DT}*.log

cat ${_PRFX}${_DT}*.log


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cafakbwjwsmksufotcrmjhzskin3ezexbdp+1fsaxib66pzs...@mail.gmail.com

Reply via email to