We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


How to I enable the script function in AIX system to capture every single commands of users?

terrencetan asked
Medium Priority
Last Modified: 2013-11-17

The AIX system currently running on AIX 5.3. I would like to enable the function in AIX which will capture every single activities by users when they log into the system.

Could anybody advice how to I implement it and the steps to implement it?

Thanks in advanced!
Watch Question

Top Expert 2007

you need to basically enable accounting:

Most Valuable Expert 2013
Top Expert 2013

do you really mean every single keystroke of any logged-in user?
This could give you tons of output!

Why do you need such a function?
Wouldn't it be enough to enable auditing, in a way that only selected, important activities
will be logged? Of course this is configurable according to your needs, as detailed as you like.
An IBM Redbook covering this is here:


IBM provides much more info about auditing.
To find it, start from here:


If you want to record everything nonethless, there is an auditing feature in ksh93.
Have a first look at it and find a downloadable audit-enabled version of ksh93 here:


I think, 'script' is not an option here, as it will start a subshell which could easily be left using 'exit'.

Please come back here and tell me how you'd like to proceed. I would try to help then, if necessary.


Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.