Sponsored Content
Top Forums UNIX for Advanced & Expert Users delete all PID that running by UID ?? Post 302277791 by thepurple on Sunday 18th of January 2009 04:23:59 AM
Old 01-18-2009
delete all PID that running by UID ??

Hi experts,

How can I delete the process running by particular UID. For an example-

I want to delete all PID that running by UID- purple

Code:
UID      PID    PPID   C   STIME   TTY      TIME CMD
purple   120     122    0   Jan 17   ?        0:02 sched
purple   234     235    0   Jan 17   ?        6:17 /home/ritmouser/script/myscript.sh
purple   455     456    0   Jan 17   ?        0:00 pageoutin
purple   4576    4678   1   Jan 17   ?       4545:56 fsflush
purple   503     1      0   Jan 17   ?        0:00 sh -c /usr/bin/ritmouser/script1
purple   130     1      0   Jan 17   ?        0:02 /usr/sbin/rpcbind
purple   348     1      0   Jan 17   ?        0:00 sh -c /usr/bin/ritmouser/script1
purple    56     1      0   Jan 17   ?       115:34 /usr/lib/picl/picld
purple   151     1      0   Jan 17   ?        0:25 /home/ritmouser/script/myscript.sh

meanwhile, what is column "C" ??

Let me correct if i am wrong- PID = child process id
PPID= parent process id
best regards,

purple
 

10 More Discussions You Might Find Interesting

1. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies

2. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

3. Shell Programming and Scripting

Need to know rhe PID for the Shell Script running

I have a Shell Scritp named "Statistics" which has a Infinate Wille Loop Running I want to restart this Srcipt "Statistics" when i try to run other srcipt Ex "ABC" so i want to kill the "Statistics" script in "ABC" so for this I what to know the PID for that Script "Statistics" which is... (7 Replies)
Discussion started by: pbsrinivas
7 Replies

4. UNIX for Dummies Questions & Answers

UID & GID of the running process

Hi, out of curosity this question just popped in my mind. Is there any way to find out the uid and gid of the running process ? If i do a ls -l of a program then it shows the uid/gid bit (if its set). I want to see as which user/group the program is running ..... is there any way to know this... (2 Replies)
Discussion started by: ankurjain
2 Replies

5. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

6. UNIX for Dummies Questions & Answers

How to find the details of the previously running process with PID

OS: Unix or Linux I (only) know the pid of the process which was running earlier (say 5 hrs back) but it is not running now. Is there a way I could find the details of that process? (atleast the name of the process). Please let me know. (2 Replies)
Discussion started by: vijay.d
2 Replies

7. Shell Programming and Scripting

Check process running Status with PID

Good day I am fairly new to Shell Scripting. I want a script to check if a process is up by checking the process's PID and then return a value for when it's running which would be 0. If it isn't running it should give any other value that 0. Any Help is appreciated Regards (9 Replies)
Discussion started by: 1nsyz1on
9 Replies

8. Shell Programming and Scripting

kill PID running in background in for loop

Guys, can you help me in killing the process which is running in back ground under for loop I am not able to find the PID using ps -afx|grep <word in command I entered> (1 Reply)
Discussion started by: mohan_xunil
1 Replies

9. UNIX for Dummies Questions & Answers

Common UID's and PID's

Hey Folks, I'm a newbie to Unix. Sorry if this doubt sounds very silly. I know that first 100 UID's are used by system accounts and the rest, for normal users. It'd be great if someone could guide me to a link where i can browse through the list of 100 system managed accounts with their UID's.... (2 Replies)
Discussion started by: prithvirao17
2 Replies

10. Shell Programming and Scripting

Quick question about finding the PID of long-running processes

The end result that I'd like is to terminate any process on my ps -u username list that extends beyond 20 minutes. I know for a fact that this process will be named l.exe, but I don't know the number in between and I won't know the PID. Is there a way to use grep or pidof to do this task every 20... (2 Replies)
Discussion started by: Bolanok
2 Replies
Color::Library::Dictionary::NBS_ISCC::RC(3pm)		User Contributed Perl Documentation	     Color::Library::Dictionary::NBS_ISCC::RC(3pm)

NAME
Color::Library::Dictionary::NBS_ISCC::RC - (NBS/ISCC RC) Rock-Color Chart DESCRIPTION
Kenneth L. Kelly and Deanne B. Judd. "Color: Universal Language and Dictionary of Names", National Bureau of Standards, Spec. Publ. 440, Dec. 1976, 189 pages. Color Name Dictionary: (RC) Rock-Color Chart National Research Council, Rock-Color Chart This combinatorial field-work dictionary's 95 names map to 120 colors, using 89 of 267 centoids. This is less redundant than the others. Unfortunately, the focus on rock colors will not make for a general purpose dictionary. <http://swissnet.ai.mit.edu/~jaffer/Color/Dictionaries#RC> COLORS
black black #222222 blackish red blackishred #543d3f bluish white bluishwhite #e9e9ed brilliant green brilliantgreen #6aab8e brownish black brownishblack #3e322c brownish gray brownishgray #5b504f dark greenish gray darkgreenishgray #5e716a dark greenish gray darkgreenishgray #4e5755 dark greenish yellow darkgreenishyellow #98943e dark reddish brown darkreddishbrown #79443b dark yellowish brown darkyellowishbrown #7e6d5a dark yellowish green darkyellowishgreen #355e3b dark yellowish orange darkyellowishorange #be8a3d dusky blue duskyblue #536878 dusky blue duskyblue #36454f dusky blue-green duskybluegreen #3a4b47 dusky brown duskybrown #3e322c dusky green duskygreen #1b4d3e dusky red duskyred #722f37 dusky yellow duskyyellow #a18f60 dusky yellow green duskyyellowgreen #8f9779 dusky yellowish brown duskyyellowishbrown #483c32 dusky yellowish green duskyyellowishgreen #355e3b dusky yellowish green duskyyellowishgreen #3a4b47 grayish black grayishblack #222222 grayish blue grayishblue #536878 grayish blue grayishblue #8c92ac grayish blue-green grayishbluegreen #5e716a grayish blue-green grayishbluegreen #317873 grayish brown grayishbrown #635147 grayish green grayishgreen #5e716a grayish green grayishgreen #317873 grayish olive grayisholive #5b5842 grayish olive green grayisholivegreen #515744 grayish orange grayishorange #c19a6b grayish orange pink grayishorangepink #c7ada3 grayish pink grayishpink #ead8d7 grayish purple grayishpurple #796878 grayish red grayishred #905d5d grayish red grayishred #674c47 grayish red purple grayishredpurple #796878 grayish yellow grayishyellow #c2b280 grayish yellow green grayishyellowgreen #8f9779 greenish black greenishblack #31362b greenish black greenishblack #3a4b47 greenish black greenishblack #1a2421 greenish black greenishblack #4e5755 greenish black greenishblack #1e2321 greenish gray greenishgray #8da399 greenish gray greenishgray #7d8984 light blue lightblue #66aabc light blue green lightbluegreen #66ada4 light bluish gray lightbluishgray #b4bcc0 light brown lightbrown #ae6938 light brown lightbrown #a67b5b light brownish gray lightbrownishgray #8e8279 light gray lightgray #b9b8b5 light green lightgreen #6aab8e light greenish gray lightgreenishgray #b2beb5 light olive lightolive #867e36 light olive brown lightolivebrown #867e36 light olive-gray lightolivegray #8e8279 light olive-gray lightolivegray #8a8776 light red lightred #c08081 medium bluish gray mediumbluishgray #81878b medium gray mediumgray #848482 medium gray mediumgray #555555 medium light gray mediumlightgray #848482 moderate blue moderateblue #367588 moderate blue green moderatebluegreen #317873 moderate brown moderatebrown #6f4e37 moderate green moderategreen #3b7861 moderate greenish yellow moderategreenishyellow #b9b57d moderate olive brown moderateolivebrown #665d1e moderate orange pink moderateorangepink #f4c2c2 moderate orange pink moderateorangepink #d9a6a9 moderate pink moderatepink #dea5a4 moderate red moderatered #905d5d moderate reddish brown moderatereddishbrown #9e4732 moderate reddish orange moderatereddishorange #b4745e moderate yellow moderateyellow #c9ae5d moderate yellow green moderateyellowgreen #8a9a5b moderate yellowish brown moderateyellowishbrown #826644 moderate yellowish green moderateyellowishgreen #679267 olive black oliveblack #363527 olive black oliveblack #57554c olive gray olivegray #57554c pale blue paleblue #66aabc pale blue paleblue #91a3b0 pale blue green palebluegreen #8da399 pale brown palebrown #977f73 pale green palegreen #8da399 pale greenish yellow palegreenishyellow #dadfb7 pale olive paleolive #8c8767 pale pink palepink #e8ccd7 pale purple palepurple #aa98a9 pale red palered #ad8884 pale red palered #977f73 pale reddish brown palereddishbrown #a87c6d pale red purple paleredpurple #aa98a9 pale yellowish brown paleyellowishbrown #ae9b82 pale yellowish green paleyellowishgreen #8da399 pale yellowish orange paleyellowishorange #fad6a5 pinkish gray pinkishgray #c1b6b3 very dark red verydarkred #722f37 very dusky purple veryduskypurple #563c5c very dusky purple veryduskypurple #50404d very dusky purple veryduskypurple #291e29 very dusky red veryduskyred #674c47 very dusky red veryduskyred #43302e very dusky red purple veryduskyredpurple #50404d very dusky red purple veryduskyredpurple #291e29 very dusky red purple veryduskyredpurple #673147 very dusky red purple veryduskyredpurple #38152c very light gray verylightgray #b9b8b5 very pale blue verypaleblue #bcd4e6 very pale green verypalegreen #c7e6d7 very pale orange verypaleorange #bfb8a5 white white #f2f3f4 yellowish gray yellowishgray #bfb8a5 perl v5.14.2 2011-12-07 Color::Library::Dictionary::NBS_ISCC::RC(3pm)
All times are GMT -4. The time now is 08:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy