From: Martin Pitt <martin.pitt@ubuntu.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: can we print the attr{} also ?
Date: Tue, 02 Nov 2010 13:25:33 +0000 [thread overview]
Message-ID: <20101102132533.GD2300@piware.de> (raw)
In-Reply-To: <201011021218.oA2CIaXR000974@dcnode-01.unlimitedmail.net>
Hello,
J. Bakshi [2010-11-02 17:49 +0530]:
> Can I send these information through notify-send ? I have already
> tried with [ notify-send %d-%k-$attr{ID_VENDOR} ] and the
> $attr{ID_VENDOR} is blank.
ID_VENDOR is an udev propery, not a sysfs attribute. Try
$env{ID_VENDOR} instead.
> I have also tried with "udevadm info -a -p /sys/block/sdc" and foound
>
> `````````````````
> ATTRS{vendor}="JetFlash"
> ATTRS{model}="Transcend 8GB
> ```````````````````````
>
> using these as $attr{vendor} also has no effect.
Presumably the vendor attribute is not on the parent node that you
matched with KERNELS, SUBSYSTEMS, DRIVERS, or ATTRS test? (see man
udev).
Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
next prev parent reply other threads:[~2010-11-02 13:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-02 12:31 can we print the attr{} also ? J. Bakshi
2010-11-02 13:25 ` Martin Pitt [this message]
2010-11-02 15:51 ` J. Bakshi
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=20101102132533.GD2300@piware.de \
--to=martin.pitt@ubuntu.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).