12-15-2006
Great link. Steps one and two of creating a daemon finely filled in the gaps and clarified it for me. Thanks again!
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
can anyone send me enything about "unix process control "
nicko@freemail.com.mk (2 Replies)
Discussion started by: nicko
2 Replies
2. Programming
Hello,
I want to know what call to use to read the details of a process control block in solaris ?:) (2 Replies)
Discussion started by: hmurali
2 Replies
3. UNIX for Advanced & Expert Users
I found that in my system , there are some strange process , it will make the system crash so I would like to control the system no such process is running ,
this is if the system process that its process name is "ora" AND its ppid is not "2" , then it will crash the system, can suggest how to... (2 Replies)
Discussion started by: ust
2 Replies
4. Shell Programming and Scripting
Hi all,
My tiny mind is struggling with the following script that shuts down Tomcat on Sol. 8 and kills any defunct processes Tomcat might leave behind (as it so often does). I realize that fixing Tomcat would be best, but this is a band-aid so I won't have to do as much off-hours support of... (3 Replies)
Discussion started by: dkaplowitz
3 Replies
5. UNIX for Advanced & Expert Users
I pressed CTRL Z and suspended the job. then I pressed bg, The process re-started to throw output on the terminal and its not allowing me to access the prompt.
its not even accepting CTRL Z. The process has been running for about 2 hours now and I want to suspend it by opening another terminal.... (3 Replies)
Discussion started by: rakeshou
3 Replies
6. Shell Programming and Scripting
Hi forum,
I have a problem concerning job or process scheduling and control.
I have to run 24 jobs (could be more sometimes less) of the same programme with different parameters. The machine this code is running on is an 8-core machine, so I was thinking that running all the processes at once... (0 Replies)
Discussion started by: deiphon
0 Replies
7. UNIX for Dummies Questions & Answers
Hi
I tried to create a zombie process with the following program:
int main(void)
{
pid_t pid;
int status;
if ((pid = fork()) < 0)
perror("fork error");
else if (pid == 0){ /* child process*/
exit(0);
}
... (3 Replies)
Discussion started by: password636
3 Replies
8. Shell Programming and Scripting
Hi,
I'm using simple sqlplus to test DB availability.
When DB is going down, sqlplus command is hang for a few minutes
I want to implement the following:
1. execute sqlplus
2. if after 20 sec I dont get a response, kill the process and exit with error.
3. if I get immediate response... (2 Replies)
Discussion started by: gdan2000
2 Replies
9. Red Hat
I encountered a problem on one of our database servers.
OS: CentOS 5.5 final
Kernel: 2.6.18-238.5.1.el5.028stab085.2 (OpenVZ kernel)
We wrote some DB-Start/Stop-scripts ("/db2/admin/scripts_dba/start_services.ksh" and ".../stop_services.ksh") to start the database instances. (Database... (1 Reply)
Discussion started by: bakunin
1 Replies
10. 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
LEARN ABOUT FREEBSD
hcsecd
HCSECD(8) BSD System Manager's Manual HCSECD(8)
NAME
hcsecd -- control link keys and PIN codes for Bluetooth devices
SYNOPSIS
hcsecd [-dh] -f configfile
DESCRIPTION
The hcsecd daemon controls link keys and PIN codes for Bluetooth devices. It opens a raw HCI socket and listens for Link_Key_Request,
PIN_Code_Request and Link_Key_Notification HCI events.
Once a Link_Key_Request or PIN_Code_Request HCI event is received, the daemon scans the configuration file for a matching entry. The remote
device BD_ADDR is used as a key. If no matching entry was found, the default entry will be used. If no default entry was found then it is
assumed that no link key and no PIN code exists. For any given entry, the link key takes precedence over the PIN code. If a link key was
not specified, the device must generate the link key from the PIN code. If an entry was found and the link key (or PIN code) exists, the
Link_Key_Request_Reply (or PIN_Code_Request_Reply) command will be sent back to the device. Otherwise, the Link_Key_Request_Negative_Reply
(or PIN_Code_Request_Negative_Reply) command will be sent back to the device.
The hcsecd daemon also handles HCI Link_Key_Notification events and caches link keys created from the PIN codes in memory. To preserve link
keys between restarts the hcsecd daemon dumps link keys for all entries in the /var/db/hcsecd.keys link keys file. If it exists, the link
keys file gets processed by the hcsecd daemon after it processes its main configuration file. The link keys file gets written every time the
hcsecd daemon shuts down gracefully. It is possible to force the hcsecd daemon to re-read its main configuration file and dump the link keys
file by sending the HUP signal to the hcsecd process. The user is expected to not modify the link keys file by hand.
The command line options are as follows:
-d Do not detach from the controlling terminal.
-f configfile
Specify the name of the configuration file. The default is /etc/bluetooth/hcsecd.conf.
-h Display usage message and exit.
FILES
/etc/bluetooth/hcsecd.conf
/var/db/hcsecd.keys
/var/run/hcsecd.pid
SEE ALSO
ng_btsocket(4), ng_hci(4), hcsecd.conf(5), hccontrol(8), hcseriald(8)
AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BUGS
Currently there is no way to select the link key or the PIN code based on which local device received the request. Everything is based on
the remote device BD_ADDR. An interface for external helpers to obtain link keys and PIN codes is missing.
BSD
November 16, 2002 BSD