I want to test that a printer on a parallel port is available, that sending a file to it will not fail because it is offline, off, cover open, out of paper.
My reading of the udevadm manpage suggests that it might be used for this but it isn't clear how, or maybe my reading is too hopeful.
Is this the right approach; is there a better way?
The printer is on /dev/lp0, can be written to, and is defined for udev:
$ udevadm info --name=/dev/lp0 --query=all
$ udevadm info -a -n /dev/lp0
looking at device '/devices/pnp0/00:07/printer/lp0':
looking at parent device '/devices/pnp0/00:07':
looking at parent device '/devices/pnp0':