From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: differences between "PROGRAM" and "RUN" (RUN+) (version 089)
Date: Mon, 10 Apr 2006 18:01:57 +0000 [thread overview]
Message-ID: <20060410180157.GA17138@vrfy.org> (raw)
In-Reply-To: <dac45060604100712r69fbe888q3a565aea6f250017@mail.gmail.com>
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\x110944&bid$1720&dat\x121642
_______________________________________________
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 parent reply other threads:[~2006-04-10 18:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-10 14:12 differences between "PROGRAM" and "RUN" (RUN+) (version 089) Mark Ryden
2006-04-10 18:01 ` Kay Sievers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060410180157.GA17138@vrfy.org \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.