Operating System - HP-UX
1836043 Members
2192 Online
110089 Solutions
New Discussion

insufficient length of command names shown by acctcom

 
SOLVED
Go to solution
Jdamian
Respected Contributor

insufficient length of command names shown by acctcom

Hi

I'm using acctcom to get the commands executed yesterday.
My problem is that this commands only shows, at most, eight characters of command name, for instance, if you ran 'make_recovery' it only shows:

make_rec

This is a problem because some Oracle process has similar names and I cannot differentiate ones from others.

Is there anyway to increase this value ?

Thanx in advance
2 REPLIES 2
john korterman
Honored Contributor

Re: insufficient length of command names shown by acctcom

Hi Damian,

I think the length is defined in
/usr/include/sys/acct.h
in the line
char ac_comm[8]; /* command name */

However, I have no idea of the consequences if you change that, but perhaps others have?

regards,
John K.
it would be nice if you always got a second chance
Ollie R
Respected Contributor
Solution

Re: insufficient length of command names shown by acctcom

Hi,

In a word, no.

The 8-char limit is fixed.

However, the process name corresponds to the first 8 characters of what you see when you do "ps -e", so hopefully that can be good enough to identify individual processes.

Ollie.
To err is human but to not award points is unforgivable