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
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
:(
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
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
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
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
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
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
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
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
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
LEARN ABOUT FREEBSD
hv_kvp_daemon
HV_KVP_DAEMON(8) BSD System Manager's Manual HV_KVP_DAEMON(8)
NAME
hv_kvp_daemon -- Hyper-V Key Value Pair Daemon
SYNOPSIS
hv_kvp_daemon [-dn]
DESCRIPTION
The hv_kvp_daemon daemon provides the ability to store, retrieve, modify and delete Key Value pairs for FreeBSD guest partitions running on
Hyper-V.
Hyper-V allows administrators to store custom metadata in the form of Key Value pairs inside the FreeBSD guest partition. Administrators can
use Windows Powershell scripts to add, read, modify and delete such Key Value pairs.
The hv_kvp_daemon accepts Key Value pair management requests from the hv_utils(4) driver and performs the actual metadata management on the
file-system.
The same daemon and driver combination is also used to set and get IP addresses from a FreeBSD guest.
The set functionality is particularly useful when the FreeBSD guest is assigned a static IP address and is failed over from one Hyper-V host
to another. After failover, Hyper-V uses the set IP functionality to automatically update the FreeBSD guest's IP address to its original
static value.
On the other hand, the get IP functionality is used to update the guest IP address in the Hyper-V management console window.
The options are as follows:
-d Run as regular process instead of a daemon for debugging purpose.
-n Generate debugging output.
SEE ALSO
hv_vmbus(4), hv_utils(4), hv_netvsc(4), hv_storvsc(4), hv_ata_pci_disengage(4), hv_kvp(4)
HISTORY
Support for Hyper-V in the form of ports was first released in September 2013. The daemon was developed through a joint effort between Cit-
rix Inc., Microsoft Corp. and Network Appliance Inc..
AUTHORS
FreeBSD support for hv_kvp_daemon was first added by Microsoft BSD Integration Services Team <bsdic@microsoft.com>.
BSD
October 27, 2014 BSD