Skip to content

sdesalas/usbmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usb-connect.jpg

usbmon

CLI monitoring of USB devices. Rerun a command when USB devices are connected & disconnected.

Installation:

$ npm install usbmon -g

Usage:

Rerun a CLI process whenever USB devices change

$ usbmon

Usage: usbmon <command>

where <command> is any cli command for your system

Examples:

usbmon ls
usbmon lsusb
usbmon curl -I http://my.domain.com/notify/usb/change?device=6b2e0a8

Note that usbmon uses libudev behind the scenes.

In Linux/Ubuntu you might need to install it:

sudo apt-get install build-essential libudev-dev

Use Cases:

Nodebots, for example to re-attach a controller after its plugged in.

usbmon node simplebot/examples/attach-controller.js

Big Brother... Monitoring and notification of connected USB devices.

$ usbmon ./notify.lsusb.sh

About

Rerun a command when USB devices are connected & disconnected.

Resources

License

Stars

Watchers

Forks

Releases

No releases published