From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 30 Nov 2005 23:29:36 +0000 Subject: Re: problem with PROGRAM Message-Id: <20051130232936.GC5871@vrfy.org> List-Id: References: <438D4B0F.5050303@magellan-technology.com> In-Reply-To: <438D4B0F.5050303@magellan-technology.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Nov 30, 2005 at 10:43:30AM -0600, linas wrote: > On Tue, Nov 29, 2005 at 11:39:18PM -0800, Greg KH was heard to remark: > > > > > > ACTION="remove", PHYSDEVDRIVER="usbnet", PROGRAM="/usr/bin/cat > > > /var/run/autoipd-usb0.pid | /usr/bin/xargs /bin/kill" > > > > > No, try putting that into a shell script. That should work properly. And make sure that the udev event will return as fast as it can and not block with the external program. It may cause problems for other events, which wait for this event to come back. > I am guessing/hoping that quotes are escaped, so that the > following might work: > > ACTION="remove", PHYSDEVDRIVER="usbnet", PROGRAM="/bin/sh -c \"/usr/bin/cat > /var/run/autoipd-usb0.pid | /usr/bin/xargs /bin/kill\" " No, escaping will not work, you need an external script. And PHYSDEVDRIVER is not a key, udev will recognize, it is just ignored, you probably want ENV{PHYSDEVDRIVER}=. Kay ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel