I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help?

need more info.... is this a windows system, unix, web app?

I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help?

The command 'who -ap' will list all the users currently logged in the system.

for more info on who, pls do type 'man who' on ur terminal.

now as per ur requirement, u can write a script mentioning the cmd inside and accordingly cut the output depending on ur requirement.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.