From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 10 Apr 2006 18:01:57 +0000 Subject: Re: differences between "PROGRAM" and "RUN" (RUN+) (version 089) Message-Id: <20060410180157.GA17138@vrfy.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Apr 10, 2006 at 05:12:01PM +0300, Mark Ryden wrote: > from man udev (of last version,089): > > PROGRAM > Call external program. This key is valid if the program returns > successful. The environment variables of udev are also available > to the program.The string returned by the program may be > additionally matched with the RESULT key in the same or > any later rule. > > RUN > Add a program to the list of programs to be executed for > a specific device. > > Can anyone please elaborate a little on the differences between "PROGRAM" and > "RUN" (RUN+) ? > > Are the environment variables of udev available when > using "run"? > When must we use RUN (RUN+) and when must we use PROGRAM ? > Are there cases when using RUN or PROGRAN is both OK? PROGRAM runs before the device node is created and usually used to return a string to name a node. RUN is a list of programs to be executed after all node processing. While PROGRAM is executed not all variables are available. Kay ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ 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