11-18-2005
How to write daemon?
Hi ,
I want to know how to write a daemon process. I also want to know the concept behind daemon processes. Any material or sample program will be great
.
Thanks in advance
-sg
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I have a directory where sometimes a file will come (in a name format say file001.txt).
I want to run a job (.ksh file) as soon as a new file comes into the directory.
How can I write a shell script which will run in the background and monitor arrival of new file in the directory?
... (11 Replies)
Discussion started by: sbasak
11 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I am new to this forum and this is my first post here...
I have never worked on either Pro*C or Multithreading..Now, i have to write a Pro*C, Multithreading daemon process.. I dont know where to start.. Can anybody help me with examples?
1. need to write a Pro*C multithreading... (0 Replies)
Discussion started by: kachiraju
0 Replies
3. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
4. Shell Programming and Scripting
Hi Guys,
I hope this is the right forum to post this.
I have a directory where files will be dumped at any time of the day and I want to run scripts as soon as new files come into the directory.
How can I write a daemon that detects when new files have been uploaded to the directory?
... (1 Reply)
Discussion started by: regie101
1 Replies
5. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
6. Programming
Can anyone tell what happens if each end writes at the same time on the same socket ?
- if one of them issues a read() after write() has completed, will it record into the buffer what the other sent ?
ex.
e1 writes to e2 - - - while - - - e2 writes to e1 (at the same time)
e1 read () - what... (1 Reply)
Discussion started by: gendaox
1 Replies
7. Shell Programming and Scripting
Hi All,
I need the answer of below question?
1) How to write multiple cronjobs in shellscript? Is there any way or we cant write in shellscript...
Regards,
Priyanka (2 Replies)
Discussion started by: pspriyanka
2 Replies
8. Programming
(Apologies for any typos.)
OSX 10.12.3 AND Windows 10.
This is for the serious Python experts on at least 3.5.x and above...
In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly.
Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies
9. UNIX for Beginners Questions & Answers
My requirement is to run two scripts simultaneously.
Let say, script1.ksh is running in a loop :
example:
script1.ksh is:
for i in 1 2 3
do
script2.ksh 1 &
#psedu code which is required to write here
# if script 2.ksh is running, execute a script3.ksh (which actually check the... (2 Replies)
Discussion started by: sumitc
2 Replies
LEARN ABOUT DEBIAN
th-cmd
TH-CMD(1) Triggerhappy daemon TH-CMD(1)
NAME
th-cmd -- triggerhappy commander
SYNOPSIS
th-cmd --socket <socket> [--passfd] [--tag <foo>] [--clear|--enable|--disable|--mode <mode>|--quit|--udev|--add <devices...>|--remove
<devices...>]
DESCRIPTION
This program is used to issue commands to a running triggerhappy daemon. It utilizes an unix domain socket bound by the daemon.
OPTIONS
--socket socket
The socket file opened by the running triggerhappy daemon instance.
--add <devices...>
Instruct the running daemon to open the input devices specified on the command line
--remove <devices...>
Remove specified devices from the running daemon.
--clear
Remove all devices from the running daemon.
--udev
Deduce operation and device name from udev environment (for use in udev rules).
--disable
Disable the execution of triggers.
--enable
Re-enable the execution of triggers.
--mode <newmode>
Change the mode of the triggerhappy daemon to <newmode>. If no new mode is specified, the daemon switches to default mode.
--quit
Terminate the triggerhappy daemon.
--passfd
Instead of instructing the daemon to open the device, open the device and pass the file descriptor to the daemon. This allows the
adding of new devices to a daemon having dropped its privileges, however the th-cmd process must have access to the device file.
--grab
Grab the device; the triggerhappy daemon will try to get exclusive access to the device, other applications will not receive the events
emitted by it.
--tag foo
Label the added device with the tag <foo>; this can be used to limit the scope of event handlers to a subset of input devices.
AUTHOR
Stefan Tomanek <stefan.tomanek+th@wertarbyte.de>
0.3.4 2011-05-10 TH-CMD(1)