On Tue, Nov 24, 2009 at 9:19 PM, mohan L <[email protected]> wrote:

> On Tue, Nov 24, 2009 at 7:13 PM, S.Selvam <[email protected]> wrote:
>
> > Hi,
> >
> > I need a little push up,
> >
> > I have shell script which opens up a xlib window, which happens in a
> loop.
> > I want each window to fade away after a certain period of time( 1 min for
> > eg
> > ).
> >
> >
> The desktop notification specification is found at freedesktop.org to
> provide a standard way of doing notifications on the desktop. The protocol
> uses D-BUS for communication.
>
> Send pop-up notifications on Gnome use notify-send .On Debian-based systems
> you may need to install the 'libnotify-bin' package.
>
> $sudo aptitude install libnotify-bin
>
> Options:
>
> -t: expire time in milliseconds.
>
> -u: urgency (low, normal, critical).
>
> -i: icon path.
>
> Example :
>
> $notify-send -t 3000 -u normal  "Hello World"
>
> In Shell Script use some thing like this:
>
> #!/bin/bash
> while [ 1 ]; do
> notify-send -t 3000 -u normal  "hello"
>     sleep 1m
> done
>
>

Thanks for giving this info.But i basically wanted a process to stop its
execution after 'n' seconds.

I achieved it by putting that process in bg and then kill it after 'n'
seconds.

   sh display.sh &
   sleep 60s

   (then kill the display.sh process)

I dont know how that could be achieved using notify-send, still it is
interesting command to learn.

>
> You can download the sourse code of notify-send at
> http://trac.galago-project.org/browser/trunk/libnotify/tools
>
> Thanks & Rg
> Mohan L
> _______________________________________________
> To unsubscribe, email [email protected] with
> "unsubscribe <password> <address>"
> in the subject or body of the message.
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>



-- 
Yours,
S.Selvam
_______________________________________________
To unsubscribe, email [email protected] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to