**** BEGIN LOGGING AT Sun Nov 05 02:59:57 2006 Nov 05 20:10:17 fun fun Nov 05 23:10:43 hmm Nov 05 23:10:51 I'm having some troubel with hotplugging Nov 05 23:10:58 I'm trying to run a program when a usb serial port's plugged in Nov 05 23:11:20 I have a very generic usb.agent script in /etc/hotplug (tried putting it in /etc/hotplug.d and also /etc/hotplug.d/usb) but it never seems to get run Nov 05 23:11:31 it's executable Nov 05 23:11:36 and starts with #!/bin/sh Nov 05 23:11:38 so it should run Nov 05 23:12:13 if I run it manually it does what it's supposed to (to the extent that it can) Nov 05 23:12:16 any ideas? Nov 05 23:13:38 tzanger, you have to supply the full path to *all* programms used in that script, there's *no* PATH set in the hotplug scripts Nov 05 23:13:49 EvilDevil_: it's not running the script Nov 05 23:13:55 I'm (for now) just saying Nov 05 23:13:56 #!/bin/sh Nov 05 23:14:01 echo $1 > /tmp/x Nov 05 23:14:10 (should write "add" or "remove" to /tmp/x Nov 05 23:14:27 what about /bin/echo $1 ? Nov 05 23:14:39 I am about ot try it Nov 05 23:14:40 :-) Nov 05 23:14:46 gotta run downstairs to generate the hotplug event Nov 05 23:14:53 unless you know of a way to simulate a usb remove/add Nov 05 23:16:37 not really, maybe a long rope or something ;) Nov 05 23:17:53 tzanger, btw, why aren't you using udev? Nov 05 23:52:56 no go Nov 06 00:03:22 I do have udev Nov 06 00:59:22 cool Nov 06 00:59:25 udev hotplugging works Nov 06 00:59:30 except the "remove" action never seems to fire **** ENDING LOGGING AT Mon Nov 06 02:59:57 2006