
30 Sep
2013
30 Sep
'13
7:54 a.m.
On Mon, Sep 30, 2013 at 03:46:55PM +0800, Jay Amorin wrote:
Now I want to store the output (standard out/error) to a log file for future reference using this:
svnadmin dump -r1:100 --incremental /srv/my_repo > /srv/my_repo.1-100.dump | tee /srv/my_repo.1-100.log
But seems not to work. Is this doable with bash or python?
I think that's taking standard output, and redirecting it to a file. Then you're piping to tee, which doesn't really do anything since you've already redirected standard output to a file. Maybe try: svnadmin dump -r1:100 --incremental /srv/my_repo 2>&1 | tee /srv/my_repo.1-100.log The 2>&1 bit makes standard error go to wherever standard output is going, and then pipes standard output to tee. -Adam