[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-hotplug
Subject: Re: differences between "PROGRAM" and "RUN" (RUN+) (version 089)
From: Kay Sievers <kay.sievers () vrfy ! org>
Date: 2006-04-10 18:01:57
Message-ID: 20060410180157.GA17138 () vrfy ! org
[Download RAW message or body]
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&kid=110944&bid=241720&dat=121642
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic