Re: dpkg.log reworked
On Fri, Jan 01, 1999 at 12:05:47PM -0800, Joseph Carter wrote:
> On Fri, Jan 01, 1999 at 08:51:42PM +0100, Wichert Akkerman wrote:
> > Previously Ben Collins wrote:
> > > Ok, here's how I see it working (the almighty master plan ;)
> >
> > Simpler version:
> [..]
> > log_stuff() {
> > echo $@ | logger -p local6.info -t "pkg:foo-dev"
> > }
>
> I can't think of any reason not to have an echo $@ there so stuff goes to
> stdout too. Unless of course you might want it to go to stderr, but
> there's ways to do that too..
logstuff() {
echo $@ | logger -s -p local6.info -t "pkg:foo-dev"
}
The -s sends output to stderr as well as syslog
--
----- -- - -------- --------- ---- ------- ----- - - --- --------
Ben Collins <b.m.collins@larc.nasa.gov> Debian GNU/Linux
UnixGroup Admin - Jordan Systems Inc. bcollins@debian.org
------ -- ----- - - ------- ------- -- The Choice of the GNU Generation
Reply to: