Sponsored Content
Top Forums Shell Programming and Scripting Script to identify logged users & commands executed Post 302333871 by vijayarajvp on Tuesday 14th of July 2009 08:22:45 AM
Old 07-14-2009
Hi,
Thanks... The commands you gave lists the data but then i am looking to identify the users who run a same command at the same time.

Example is User A & User B running the command cp at same time
then i need to take the o/p like

User A cp 12 hrs
User B cp 12 hrs

something like this.

If you get some idea plz let me know.

Thanks,
Vijay
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how many users logged

in unix what is the syntax to find out how many users are currently logged in (4 Replies)
Discussion started by: trichyselva
4 Replies

2. Shell Programming and Scripting

Script to check users logged out

Hi, Here is the script that I have written to check if a particular user is has logged out, and if yes, then a mail needs to be sent to the management the details of whatever has been captured by the script command. echo "The current users are:" who | awk '{print $1}' | sort > temp1 cp... (1 Reply)
Discussion started by: ggayathri
1 Replies

3. Shell Programming and Scripting

Users Not Logged in

I have searched the forums but have not mangaed to quite find what im looking for. I have used to /etc/passwd command to present me a list of all users the who command to present all users currently logged on, but what i want to know is what command can i use to display users that are registered... (12 Replies)
Discussion started by: warlock129
12 Replies

4. UNIX for Dummies Questions & Answers

How many users are logged in?

How do I find this out? I have a feeling its a simple command such as who, but I just don't know what it is. I've had a search on here but either I can't put it into the right search criteria or there isn't a topic on it. Thanks. EDIT: Delete this thread, as I posted it I noticed the... (0 Replies)
Discussion started by: chris_rabz
0 Replies

5. Shell Programming and Scripting

number of users logged in script

My admin needs a shell script in Korn that will show conditions based on users logged in. I have never used the Korn shell and have no clue what I am doing, can anyone help. here are the conditions that need to be returned. if users are below 5 displays should be: performance is high if... (1 Reply)
Discussion started by: vthokiefan
1 Replies

6. Shell Programming and Scripting

Script to capture userids logged on & killing as well

Can someone help me with a script to capture the list of users logged on at a point of time, and if a particular user id say xyz exists, kill that process Id. (2 Replies)
Discussion started by: ggayathri
2 Replies

7. Shell Programming and Scripting

How to list Commands used by users & with time stamp

hi, Do anybody know, how to list out all the commands & scripts used by the user & root along with the timestamps under ksh & csh shells. Thanks in advance Regards BS (1 Reply)
Discussion started by: raghunsi
1 Replies

8. UNIX for Dummies Questions & Answers

How to identify logged in kernel and to change it too

Hi, I am a user, do have root if needed via sudo. We are using Solaris. In my home directory, i have only one file ending with "rc" in it, "local.cshrc." I am guessing this is c shell kernel config file. Can I confirm that shell i am logged into is cshell ? How to set up so that i can use... (3 Replies)
Discussion started by: dude1113
3 Replies

9. Shell Programming and Scripting

Script to find users not logged in for 90 days

Dear All, I need your help in finding out users not logged in to linux system for more than 90 days. I found a script from our forum i am getting error while using that. from the code i have debugged line by line to see where i am getting the problem. i found out the below line i am getting... (5 Replies)
Discussion started by: Sachinlinux
5 Replies
tpmtoken_init(1)					      General Commands Manual						  tpmtoken_init(1)

							  TPM Management - tpmtoken_init

NAME
tpmtoken_init - initialize the user's TPM PKCS#11 data store SYNOPSIS
tpmtoken_init [OPTION] DESCRIPTION
tpmtoken_init initializes the user's TPM PKCS#11 data store so that applications can exploit the TPM capabilities through the PKCS#11 interface. PKCS#11 requires a password (or PIN) for the Security Officer (SO) and the User. The SO is responsible for initializing the token and setting the User password (or PIN). -h, --help Display command usage info. -v, --version Display command version info. -l, --log [none|error|info|debug] Set logging level. -k, --token STRING Use STRING to identify the label of the PKCS#11 token to be used -y, --yes Assume an answer of yes for any confirmation prompts that would normally be asked SEE ALSO
tpmtoken_setpasswd(1), tpmtoken_import(1), tpmtoken_objects(1), tpmtoken_protect(1) REPORTING BUGS
Report bugs to <trousers-users@lists.sourceforge.net> TPM Management 2005-04-25 tpmtoken_init(1)
All times are GMT -4. The time now is 05:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy