Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

th-cmd(1) [debian man page]

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)

Check Out this Related Man Page

USBIP(8)						  System Administration Utilities						  USBIP(8)

NAME
usbipd - USB/IP server daemon SYNOPSIS
usbipd [options] DESCRIPTION
usbipd provides USB/IP clients access to exported USB devices. Devices have to explicitly be exported using usbip bind before usbipd makes them available to other hosts. The daemon accepts connections from USB/IP clients on TCP port 3240. The clients authorised to connect may be configured as documented in hosts_access(5). OPTIONS
-D, --daemon Run as a daemon process. -d, --debug Print debugging information. -v, --version Show version. LIMITATIONS
usbipd offers no authentication or authorization for USB/IP. Any USB/IP client running on an authorised host can connect and use exported devices. EXAMPLES
server:# modprobe usbip server:# usbipd -D - Start usbip daemon. server:# usbip list - List driver assignments for usb devices. server:# usbip bind -b 1-2 - Bind usbip-host.ko to the device of busid 1-2. - A usb device 1-2 is now exportable to other hosts! - Use 'usbip unbind -b 1-2' when you want to shutdown exporting and use the device locally. SEE ALSO
usbip(8) usbip February 2009 USBIP(8)
Man Page

15 More Discussions You Might Find Interesting

1. Programming

daemon

I want to write background running program. How to use daemon function. Please send me source code. Thanks. (1 Reply)
Discussion started by: bat_oyu
1 Replies

2. Programming

What is a daemon process?

This is gonna seem really silly to almost evryone here - but I need to know : what is a daemon process? Thanks (6 Replies)
Discussion started by: Kanu77
6 Replies

3. UNIX for Dummies Questions & Answers

Disable routed daemon at boot time????

I'm new to UNIX.... I'm running SCO UNIX and would like to disable routed daemon from being start at boot time. How should I do this????? Please help. (2 Replies)
Discussion started by: rrivas
2 Replies

4. UNIX for Dummies Questions & Answers

Unix devices

Hi I am trying to determine the access to unix devices. I found the follow access description which I have been told is a symbolic link and is not the actual file. I was also told that all symbolic links will have rwxrwxrwx access. kmem: lrwxrwxrwx 1 root 27 May 28 16:06 /dev/kmem ->... (2 Replies)
Discussion started by: GW01
2 Replies

5. UNIX for Dummies Questions & Answers

Should a UNIX daemon process close open fds?

I have a UNIX daemon process that's been started by a parent process, an application server. The behavior of this daemon process is to inherit and use the app server's file descriptors (ports/sockets). When I shutdown the app server, the daemon continues to run, because there may be other... (1 Reply)
Discussion started by: kunalashar
1 Replies

6. UNIX for Dummies Questions & Answers

applicatoin cannot started, becos daemon did not run

hi, i had an applicatoin which is not running cos one of its daemon is not running.. i get the applicatoin to run by running the daemon first... its manual job... so quite cumbersome.. i have backups in the night, with the crontab -l entry with logs written. the logs indicated successful... (7 Replies)
Discussion started by: yls177
7 Replies

7. UNIX for Dummies Questions & Answers

Admintool

I am new to unix....How do I enable XWindows... Or for that matter, use Admintool. .....Pls. help. Thanks. PS. I am running Solaris 8. (3 Replies)
Discussion started by: d4jtwvb
3 Replies

8. Programming

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 (2 Replies)
Discussion started by: sg6876
2 Replies

9. Shell Programming and Scripting

créating a daemon under unix

hi i want to create a daemon under unix or linux but i don't really know how so i will be grateful if you provide me links with examples or /andx how to do it thanks (2 Replies)
Discussion started by: student00
2 Replies

10. UNIX for Dummies Questions & Answers

Signaling

Can anyone post a simple program for handling signals. My requirement is like this A daemon process is running and when it receives a signal like ctrl+a (eg.) then a function in the daemon needs to be executed. (2 Replies)
Discussion started by: abc.working
2 Replies

11. UNIX for Advanced & Expert Users

Oracle library issue in child process

Hi, I am using a daemon from which I am forking 3 processes P1,P2,P3 out of which P3 is compiled with oracle lib32/libclntsh.so and P1,P2 are non database process. The Logic of daemon is that if any one goes down simply clean the other and refork all the 3 again. P3 is getting forked first time... (1 Reply)
Discussion started by: unisuraj
1 Replies

12. Shell Programming and Scripting

File Descriptor

Hello All, Im opening a file desciptor in perl and sending data using print CMD "$xyz". is there a limit to the length of the string that I can give to this CMD at a time. (3 Replies)
Discussion started by: rimser9
3 Replies

13. Programming

Help with task daemon

believe it or not but this is my first c program (i've worked with java, C#, php though) I am trying to make a daemon that checks if mplayer is running(it's for a projection room) and if it is not then to run mplayer with a file.. So far it's not working and I don't know why Help and comments... (5 Replies)
Discussion started by: james2432
5 Replies

14. AIX

doubts on xcomd

Hi , How to check if a daemon process is running or not ? is the lssrc command the right option ? I want to check if xcomd daemon is running or not ? lssrc -a | grep xcomd is of no use. Though I am able to sense that xcomd is running there is no output from lssrc command. Do I... (2 Replies)
Discussion started by: BalajiUthira
2 Replies

15. UNIX for Dummies Questions & Answers

Oracle process running as user daemon

Hi, When process listing, I came across a process running as user daemon. daemon 23576 23574 0 07:32:04 ? 0:07 oracle (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq))) root 27526 27444 1 07:38:43 ttyp5 0:00 grep 23574 why a process runs as user daemon, when it should be... (3 Replies)
Discussion started by: wilsonee
3 Replies