Sponsored Content
Top Forums Shell Programming and Scripting Processes by User's actual names Post 302198251 by Yogesh Sawant on Thursday 22nd of May 2008 11:52:30 AM
Old 05-22-2008
duplicate post, proceed here
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Max. No. Processes/user

Hi All, I heared that each user in UNIX have max. number of processes that can be running at one time. Is this correct? If yes, how can I know this number and how can I change it. N.B.: I am using Sun 5.6 Regards (4 Replies)
Discussion started by: omran
4 Replies

2. Solaris

killing all processes for an user

how can I kill all the processes belonging to an user. I need it because I can't see a process initiated by a user and thus unable to kill it. (2 Replies)
Discussion started by: krishan
2 Replies

3. UNIX for Dummies Questions & Answers

Processes by Actual names

hi all. Is there any way to get the original names (not the login names) of users currently logged on to the machine and the processes they are logged on to...names as in abc xyz and not abc.xyz I dont want to first use w -s and then loops to arrange the information, and i cant figure out how... (2 Replies)
Discussion started by: kartikkumar84@g
2 Replies

4. UNIX for Dummies Questions & Answers

Processes by User's names

Hi All I am being trained in unix and am tryin to write a script for listing the user Processes by user's names exactly the following manner WITHOUT USING A TEMPORARY FILE or SED OR AWK! The format of the output I want is: Code: James Hallan PID TTY TIME CMD 31799 pts/3 00:00:00 vim ... (2 Replies)
Discussion started by: kartikkumar84@g
2 Replies

5. AIX

run which command to check the actual user

hi gurus, i have a question: when run which javac under a user account I got the following results: PROD DB Server: /usr/java14/bin/javac DR DB Server: /usr/java14/bin/javac DEV DB Server: /usr/java5_64/bin/javac The .profile in all environments are same. so how do know who is the... (1 Reply)
Discussion started by: lweegp
1 Replies

6. UNIX for Advanced & Expert Users

integer user names and user quotas!

hello, i want to implements user quotas. the problem is that all of our user names are integer numbers, like 8510453. so when i set quota for a user (e.g. 8510453), it wont be set for that user name instead it will be set for exactly this: #8510453 (this is what webmin report shows). i have... (5 Replies)
Discussion started by: mrhosseini
5 Replies

7. UNIX for Advanced & Expert Users

User in who but no processes

Hi all! After killing some processes, I encounter the following problem: 1) some delay in the login process 2) question marks (?) in who output 3) when doing ps -fu for users with question mark in who, no process is runing. To solve this problem I shutdown the system. Does anyone know the... (4 Replies)
Discussion started by: Panos1962
4 Replies

8. Shell Programming and Scripting

Processes of a user

Hi, Please can some one advise how can we get all the processes corresponding to a particular user. Cheers, Shazin (4 Replies)
Discussion started by: Shazin
4 Replies

9. Homework & Coursework Questions

User processes

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have to write a program which can tell me how many processes is running by some user, from the /etc/passwd file... (3 Replies)
Discussion started by: petel1
3 Replies

10. Shell Programming and Scripting

need to add user from command prompt not to open actual file

Here is my script which gives the below output when I run.First it will display the list of all groups and then ask for enter the group name and after it will ask for contribuotors or users then I will add contribuotirs or users and it will show the list of all users associated with that group but... (3 Replies)
Discussion started by: rohit22hamirpur
3 Replies
kill(2) 							System Calls Manual							   kill(2)

NAME
kill(), raise() - send a signal to a process or a group of processes SYNOPSIS
DESCRIPTION
The system call sends a signal to a process or a group of processes, as specified by pid. The signal to be sent is specified by sig and is either one from the list given in or The system call sends a signal to the executing process or thread. The signal to be sent is specified by sig and is either one from the list given in or In a single-threaded process the effect of the function is equivalent to calling When used in a multithreaded program, the function sends the signal specified by sig to the executing thread. The effect of the function is equivalent to calling If sig is (the null signal), error checking is performed but no signal is actually sent. This can be used to check the validity of pid. The real or effective user ID of the sending process must match the real or saved user ID of the receiving process unless the sending process has appropriate privileges. As a single special case, the continue signal can be sent to any process that is a member of the same session as the sending process. The value is defined in the file and is guaranteed not to be the ID of any process in the system or the negation of the ID of any process in the system. If pid is greater than zero and not equal to sig is sent to the process whose process ID is equal to pid. pid can equal unless sig is or If pid is sig is sent to all processes excluding special system processes whose process group ID is equal to the process group ID of the sender. If pid is and the sending process does not have the appropriate privileges, sig is sent to all processes excluding special system processes whose real or saved user ID is equal to the real or effective user ID of the sender. If pid is and the effective user ID of the sender is a user who has appropriate privileges, sig is sent to all processes excluding special system processes. If pid is behaves much as when pid is equal to except that sig is not sent to the calling process. If pid is negative but not or sig is sent to all processes (excluding special system processes) whose process group ID is equal to the absolute value of pid, and whose real and/or effective user ID meets the constraints described above for matching user IDs. Security Restrictions Some or all of the actions associated with this system call are subject to compartmental restrictions. See compartments(5) for more infor- mation about compartmentalization on systems that support that feature. Compartmental restrictions can be overridden if the process pos- sesses the privilege (COMMALLOWED). Processes owned by the superuser may not have this privilege. Processes owned by any user may have this privilege, depending on system configuration. Some or all of the actions associated with this system call require the (OWNER) and/or the (REBOOT) privileges. Processes owned by the superuser will have these privileges. Processes owned by other users may have privilege(s), depending on system configuration. See privi- leges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
Upon successful completion, a value of is returned. Otherwise, a value of is returned and is set to indicate the error. ERRORS
If fails, no signal is sent. is set to one of the following values. sig is neither a valid signal number nor zero. sig is or and pid is that of the initialization process (also known as The user ID of the sending process is not a user who has appropriate privileges and its real or effective user ID does not match the real or saved user ID of the receiving process. The sending and receiving processes are not in the same session and the real or effective user ID does not match the real or saved user ID of the receiving process. No process or process group can be found corresponding to that specified by pid. If fails, no signal is sent. is set to the following value. sig is neither a valid signal number nor zero. APPLICATION USAGE
Threads Considerations can be used to post signals to another process but cannot be used to post signals to a specific thread in another process. For information on posting signals to specific threads within the same process, see pthread_kill(3T). LWP (Lightweight Processes) Considerations Signals cannot be posted to specific LWPs in another process. AUTHOR
was developed by HP, AT&T, and the University of California, Berkeley. SEE ALSO
kill(1), getpid(2), setsid(2), signal(2), sigqueue(2), pthread_kill(3T). STANDARDS CONFORMANCE
kill(2)
All times are GMT -4. The time now is 10:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy