LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 103Reputation: 103
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 ?

Quote:


while [ 1 ] ; do lynx --dump http://www.linuxquestions.org/questi...p?do=noreplies | 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, 12:07 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Try Zenity instead? As in 'zenity --entry --entry-text="http://www.linuxquestions.org/questions/lqsearch.php?do=noreplies";'?
 
Old 06-18-2011, 12:30 PM   #3
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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:

Code:
while [ 1 ] ; do notify-send "$(links -dump "http://www.linuxquestions.org/questions/lqsearch.php?do=noreplies" | 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, 07:39 AM   #4
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Original Poster
Rep: Reputation: 103Reputation: 103
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 !!

PS

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


Reply


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 05:43 PM
[SOLVED] notify-send not work as CGI script? djstava Linux - Desktop 2 05-31-2010 12:10 AM
Using notify-send with multiple lines in body Mleahy Linux - Desktop 2 03-10-2010 05:09 AM
using notify-send ashikahamed Ubuntu 0 05-02-2008 07:09 AM
log send, sendrec, recv and notify system calls xeon123 Other *NIX 1 02-04-2008 06:26 PM


All times are GMT -5. The time now is 01:56 PM.

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