On 2014-08-09T13:43:32 +0200 Stephan Beal <[email protected]> wrote:
> 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 That's more or less what I wrote. I just didn't do it in /bin/sh and didn't use temporary files. M _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

