Sponsored Content
Full Discussion: kill parent and child
Top Forums UNIX for Dummies Questions & Answers kill parent and child Post 33566 by larry on Thursday 9th of January 2003 02:15:10 PM
Old 01-09-2003
Thanks Perderabo,

What you suggested works great. But I did not fully explain myself. I have a guest account in which guest can use to log on to the server. But some guest do not log off thus the problem. I just want to kill only the select login in.

Here is a print out of who -uH

NAME LINE TIME IDLE PID COMMENTS
guest pts/5 Jan 9 08:11 2:48 10842 (cic2)
guest pts/6 Jan 9 10:44 0:02 11159 (cic4)
guest pts/7 Jan 9 08:56 0:35 11039 (cic65)

As per you suggestion I would use kill -9 -1 10842

But this will kill all users that are login. But I don't want to kill all login. Just guest at pts/5 from machine "cic2". I have looked at the man pages for kill but it does seem to talk about the addtional "-1" after kill -9. Thanks again
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

what are parent and child processes all about?

I don't follow what these are... this is what my text says... "When a process is started, a duplicate of that process is created. This new process is called the child and the process that created it is called the parent. The child process then replaces the copy for the code the parent... (1 Reply)
Discussion started by: xyyz
1 Replies

2. Filesystems, Disks and Memory

How hard can it be? ps child/parent

:( Since I'm fairly new to the scene and don't have much experience in shell programming, I decided to check out the net for a useful script or two. What I'm looking for is a script that would let me enter a PID and then show the process tree associated with it. So it would display the (grand-)... (2 Replies)
Discussion started by: velde046
2 Replies

3. Shell Programming and Scripting

Parent/Child Processes

Hello. I have a global function name func1() that I am sourcing in from script A. I call the function from script B. Is there a way to find out which script called func1() dynamically so that the func1() can report it in the event there are errors? Thanks (2 Replies)
Discussion started by: yoi2hot4ya
2 Replies

4. UNIX for Advanced & Expert Users

Child Killing Parent

Hi all, I am writing a script which calls other third party scripts that perform numerous actions. I have no control over these scripts. My problem is, one of these scripts seems to execute and do what it is meant to do, but my calling / parent script always exits at that point. I need to... (4 Replies)
Discussion started by: mark007
4 Replies

5. UNIX for Dummies Questions & Answers

Kill child processes, when parent is "bash"

Consider this simple command line bash -c 'echo $$ ; sleep 10000'This will print the newly created bash PID and sleep for a long time. If I go to another terminal and do something like ps -flax | grep leepI'll see something like 501 92418 91910 0 0:00.00 ttys000 0:00.00 bash -c echo $$... (5 Replies)
Discussion started by: teras
5 Replies

6. Programming

To share fd between parent and child

i used function fork(). so i made two process. parent process accepted socket fd and writing to shared memory. then now. how can child process share parent's socket fd? is this possible? Thanks in advance (1 Reply)
Discussion started by: andrew.paul
1 Replies

7. Homework & Coursework Questions

Need help with deleting childīs parent and child subprocess

1. The problem statement, all variables and given/known data: I need to make an program that in a loop creates one parent and five children with fork(). The problem i'm trying to solve is how to delete the parent and child of the childīs process. 2. Relevant commands, code, scripts,... (0 Replies)
Discussion started by: WhiteFace
0 Replies

8. Shell Programming and Scripting

forking a child process and kill its parent to show that child process has init() as its parent

Hi everyone i am very new to linux , working on bash shell. I am trying to solve the given problem 1. Create a process and then create children using fork 2. Check the Status of the application for successful running. 3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies

9. Shell Programming and Scripting

Kill Parent/ Child processes

I am trying to kill PIDs that are tied to a KSH "load_sqlplus" and I am using the below code LIST_PID=`ps -ef | grep -i "load_sqlplus" | grep -v grep | awk '{print $2}'` if ; then echo "Processes killed" "PID : " $LIST_PID kill -9 $LIST_PID else echo "Nothing to Kill" fi... (4 Replies)
Discussion started by: venky338
4 Replies

10. Shell Programming and Scripting

System should not kill the child process when parent id is 1

HI i would like to know how i can simulate a shell scripts for my requirement. example Server name child Process id Parent Process id Vpesh 16013 15637 Server name child Process id Parent Process id Vpesh 16014 15637 Server name child... (1 Reply)
Discussion started by: vpesh
1 Replies
PDB_ODSAM(8)															      PDB_ODSAM(8)

NAME
pdb_odsam - Open Directory account information database for smbd SYNOPSIS
The pdb_odsam plugin is the default account information database backend used on Mac OS X. It makes users and groups record from Open Directory available to Samba. idmap_odsam should always be used in conjunction with the odsam passdb backend. OPTIONS
odsam: map guest to guest = BOOL If this is true (the default), pdb_odsam map the literal username "guest" to the configured guest account. This makes "guest" an alias for the configured guest account regardless of whether an account named "guest" exists or not. odsam: msglevel = LEVEL LEVEL is the integer log level at which pdb_odsam should emit log messages. The lower LEVEL is, the more verbose the log messages. odsam: traceall = BOOL If this is true, pdb_odsam will emit log messages for all Open Directory calls. If it is false (the default), it will only log errors. EXAMPLES
[global] idmap domain = default idmap config default:default = yes idmap config default:backend = odsam idmap alloc backend = odsam passdb backend = odsam odsam: msglevel = 0 # Log at debugging levels odsam: traceall = no # Do not trace Open Directory calls BUGS
Please report bugs to Apple. SEE ALSO
DirectoryService(8), smb.conf(5), smbd(8) PDB_ODSAM(8)
All times are GMT -4. The time now is 09:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy