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
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
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'
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