The software on this pages will slowly be moved to GitHub https://github.com/hilbix/. The CVS repository will be migrated to GIT as well, so the history will be preserved, a bit. See FAQ.
The tools are developed under Linux with
release early, release often
So you can consider this beta software, or alpha, or pre-alpha, or even worse ;)
Have a look in the download directory for all downloads.
As always here, all you get is the source. No binaries here.
Dump udev events for bash usage
⇒ ⇒ ⇒ The development shifted to another location. All future versions will be published at https://github.com/hilbix/udevraw ⇐ ⇐ ⇐
udevraw allows you to process udev events from shell. In contrast to "udevadm monitor" it is designed to be used directly from quick-and-dirty bash scripts.
Udev is not able to detect the change of a medium until that medium is accessed. It is able to see USB plug events of card readers, but not of the memory card in the reader. If you want to actively poll for a card change, see the "plug.sh" example script how to do that.
WARNING: The output is not backward compatible. See usage. Options -a -e -i -p and plug.sh added.
Look into the source or experiment to see what can be done. This is probably still far from ready yet.
Example to see everything:
udevraw -e '*'
Example to monitor for device change events:
udevraw -a change -f block -d disk
Sadly udevraw does not work properly on memory cards. I do not get any event when I plug in a card. The kernel only detects changes when I access the card.
As a workaround, see plug.sh
First version, it works
License and Disclaimer
All you can see here is free software according to the GNU GPL.