Log output » History » Version 1

David PICARD, 10/09/2014 04:45 PM

1 1 David PICARD
h1. Log output
2 1 David PICARD
3 1 David PICARD
To redirect the program output to a log file, simply use the shell '>' or '>>' operators. '>' overwrites the output file, whereas '>>' creates a new file or appends to an existing file. As a consequence, the latter should be used in the case of [[Batch processing]].
4 1 David PICARD
5 1 David PICARD
[[Batch processing]] example, with output redirected to @log.txt@ :
6 1 David PICARD
<pre>
7 1 David PICARD
$ for f in *; do szdist -i $f -t rawstd -o ../pro/${f%".szr"}.csv >> log.txt; done
8 1 David PICARD
</pre>