Re: Syslog output from bash

2016-08-23 Thread Richard Lohman
That was exactly it. I kept thinking of openlog as opening a pointer to a file. Thanks, all for you insights. On Aug 23, 2016 9:44 AM, "Chet Ramey" wrote: > On 8/22/16 4:10 PM, Richard Lohman wrote: > > Hey all: > > > > In my attempts to log commands from bash via syslog, I've come upon a > sna

Re: Syslog output from bash

2016-08-23 Thread Chet Ramey
On 8/22/16 4:10 PM, Richard Lohman wrote: > Hey all: > > In my attempts to log commands from bash via syslog, I've come upon a snag. > The output is of the form: > Mmm dd HH:MM:SS hostname -bash: command > This was obtained by uncommenting the define in config-top.h and changing > the call to

Re: Syslog output from bash

2016-08-23 Thread Piotr Grzybowski
On 23 Aug 2016, at 08:08, Bob Proulx wrote: > Richard Lohman wrote: >> Problem is, I'd like the output to resemble other syslog messages: >> Mmm dd HH:MM:SS hostname bash[pid]: command >> And ultimately drop the username in as well. Since only bash is logging in > > I suggest using the 'logger'

Re: Syslog output from bash

2016-08-22 Thread Bob Proulx
Richard Lohman wrote: > Problem is, I'd like the output to resemble other syslog messages: > Mmm dd HH:MM:SS hostname bash[pid]: command > And ultimately drop the username in as well. Since only bash is logging in I suggest using the 'logger' command instead of modifying bash. Normally I am doi