Skip to main content

Run script on /dev/tty access

Is there any way to run a script when a program accesses a /dev/tty device?

Adding a udev rule only runs during boot and not, say when I connect with minicom.

uMinded
  • 201
  • 2
  • 4