On Wed, Mar 18, 2009 at 8:24 AM, greek ordono <[email protected]> wrote:
> udev do not provide any output but you can use notify-send(libnotify-bin).
> Use this script alt-notify-send(http://gnome-hacks.org/hacks.html?id=82).
>
> #!/bin/sh
> users=$(who -u | grep '(:[0-9])' | cut -d' ' -f1)
> su $user alt-notify-send "usb-check" "Scanning USB" 0
> avgscan -scan /media/$1 -report /tmp/scan.log
> su $user alt-notify-send "usb-check"  "Scanning complete; pls check
> /tmp/scan.log for details" 0
>

This should work since it info messages are sent using the account of
the logged in user.



Holden
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to