Date: Fri, 08 Jun 2007 14:00:09 +0100 From: Robin Becker <robin@reportlab.com> To: FreeBSD Questions <questions@freebsd.org> Subject: detect stderr writes when combined Message-ID: <466952D9.2050903@chamonix.reportlab.co.uk>
next in thread | raw e-mail | index | archive | help
This is possibly a stupid question, but I would like to have a particular sh script stdout and stderr combined, but at least detect when stderr has been used. In particular for my cron scripts it seems that error messages get wrapped up and emailed, but they are then out of context with the normal informative output. If I could have the combined output go to my logs in the normal way and detect that some error output had occurred I could then email the whole cron output. I'm fairly sure this is doable with some C, but is there an easier way? -- Robin Becker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?466952D9.2050903>