bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Request re: syslog and bashhist


From: Chet Ramey
Subject: Re: Feature Request re: syslog and bashhist
Date: Mon, 10 Aug 2015 16:19:08 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0.1

On 8/9/15 1:37 PM, aixtools wrote:
> Hi,
> 
> Via google I came across the define named
> 
> config-top.h:/* #define SYSLOG_HISTORY */
> 
> Changing it (manually) to
> config-top.h:#define SYSLOG_HISTORY
> 
> Adds syslog statements such as:
> Aug  9 16:52:55 x064 user:info syslog: HISTORY: PID=262242 UID=0 ls -ltr
> 
> Request #1
> Add a ./configure variable, e.g., --with-syslog_history

I will think about this, but I am inclined not to do it.  It's easy enough
to enable for those few user who want to do so.

> Request #2
> 
> At the request of a bash user on AIX I made the following change to make
> the syslog output "standardized" to AIX format for many applications so
> that the output looks like this:
> 
> Aug  9 17:30:12 x064 user:info syslog: bash[454682]: UID=0: ls -ltr

The better way to do this is to use openlog().  I will add the necessary
pieces to call openlog with the shell name as the identifier and LOG_PID
as the default value for the log options.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]