Henrik Krohns wrote: > On Fri, Oct 12, 2007 at 12:11:09PM -0400, Bowie Bailey wrote: > > Matthias Haegele wrote: > > > Bowie Bailey schrieb: > > > > Is there any way to get sa-update to output detail about which > > > > channels were updated? I currently get an email when it updates > > > > something, but I can't tell which channels were updated without > > > > digging into the directory structure looking for timestamps. > > > > > > man sa-update? > > > > > > sa-update -D? > > > > I'm not looking for massive amounts of output. I want either no > > output or a list of updated channels. > > > > Maybe I'll dig into the code and try to add something for it if I > > can find any spare time. > > You really don't know how to use grep? > > sa-update -D 2>&1 | egrep 'the lines you maybe want'
Yes, but that's really ugly to put into a cron job. And looking at the debug output, it seems like it would be easier to search the update directory for current timestamps than to find something reasonable in the debug output to key on. Also, now that I think about it further, I really want output in two cases. 1) When the channel is updated, and 2) when the update is attempted and fails. In the second case, I want a reasonable error message telling why the update failed (500 Error, lint failure, etc). I just think it would be much cleaner to have this built into the program. As I said, if I can find some spare time, I may attempt to create a patch for it. Until then, it's not a major issue, I was just curious if anyone else had come up with a good way to do it. -- Bowie