On Sat, Aug 9, 2014 at 1:39 PM, <[email protected]> wrote:
> The problem there is that I want it to tell me when a sync fails, but I > don't want to hear "sync succeeded" over and over. Essentially, I only > want output if the process in question returns a non-zero exit code. > The program I ended up writing to perform syncs does this check, and so > I only get an inbox full of errors instead! > How about: if ! fossil ... >/log 2>&1; then cat /log; else rm -f /log; fi -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

