Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-18-2011, 08:41 AM   #1
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 105Reputation: 105
Question Hyperlink --> Notify-Send

I am trying to write a script that will search a specific site for key words send the results to a pop up which I will be able to click on if I am interested in.

I came up with the line of code which does what I want but I can't click on it or even copy paste.

Any Thoughts ?


while [ 1 ] ; do lynx --dump | notify-send --icon=/media/N-Space/Memories/Cool\ Graphics/Icon/Theme\ Icons\ -\ Cool\ Stuff/internet_compass.png "$(grep -ir "Debian" | cut -d\ -f3)" ;sleep 5;done

Old 06-18-2011, 11:07 AM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Try Zenity instead? As in 'zenity --entry --entry-text="";'?
Old 06-18-2011, 11:30 AM   #3
Senior Member
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I'm not sure exactly what you're after - the thing you posted is broken (there's nothing being fed to grep).

The "cut -d\ -f3" suggested you were perhaps after the time of posting? Or maybe the replies? What exactly were you trying to get?

A 'more' functional version of what you were after is:

while [ 1 ] ; do notify-send "$(links -dump "" | grep -i "Debian")" ;sleep 5;done
I'm afraid I don't have lynx installed so I'm using links, and I don't have your icons, but what I posted works for me. You are aware, though, that this will generate a notification every 5 seconds of everything it finds?
Old 06-19-2011, 06:39 AM   #4
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 105Reputation: 105
I am trying to work with text in a web page , dump it , search for key words then display the link on the page so I can click & go.

The line in my post is just a draft. Once I get that down I was then going to integrate input points for variables ( Web Page, Regex, Period) so I could run a interactive script.

Thanks for the zenity recommendation. It has some nice options but as far as I can seen none that will allow me to "hyperlink the text".

Any suggestions welcome !!


Happy Fathers Day to all the Fathers on line....


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Libnotify and notify-send problems J_Humphrey Slackware 8 07-27-2010 04:43 PM
[SOLVED] notify-send not work as CGI script? djstava Linux - Desktop 2 05-30-2010 11:10 PM
Using notify-send with multiple lines in body Mleahy Linux - Desktop 2 03-10-2010 04:09 AM
using notify-send ashikahamed Ubuntu 0 05-02-2008 06:09 AM
log send, sendrec, recv and notify system calls xeon123 Other *NIX 1 02-04-2008 05:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration