Replacing with 2>&1 won't help I think as I also need to save the output of svnadmin dump to /srv/my_repo.1-100.dump.
Thanks. Jay On Mon, Sep 30, 2013 at 3:54 PM, Adam Bolte <[email protected]>wrote: > 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 > > _______________________________________________ > luv-main mailing list > [email protected] > http://lists.luv.asn.au/listinfo/luv-main > >
_______________________________________________ luv-main mailing list [email protected] http://lists.luv.asn.au/listinfo/luv-main
