LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-16-2010, 03:57 PM   #1
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,154

Rep: Reputation: 134Reputation: 134
Automaticaly get current URL address for use in bash?


I've tried hardy to grab URL adress from my firefox "address bar" with bash. Is there any way to capture current url adress(or current url location, or current domain) from any decent browser (or by listening to own traffic.)
 
Old 09-17-2010, 09:19 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,274
Blog Entries: 1

Rep: Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056Reputation: 1056
Quote:
Originally Posted by yooy View Post
I've tried hardy to grab URL adress from my firefox "address bar" with bash. Is there any way to capture current url adress(or current url location, or current domain) from any decent browser (or by listening to own traffic.)
Well,.. you could use "ngrep http"

Then the next site you visit, it will catch all the http urls, including the one in the address bar (Which will be the first one it sees)
 
Old 09-18-2010, 01:03 PM   #3
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,154

Original Poster
Rep: Reputation: 134Reputation: 134
thanks for that, however i found a walkaround for current problem by wmctrl-l+gprep to follow browser window title. Thanx
 
Old 09-18-2010, 01:52 PM   #4
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.0
Posts: 452

Rep: Reputation: Disabled
There is a firefox extension called savelink which produces "favorites" like MS IE does.

Accessing firefox from the "outside" has always been difficult, which is why some other browsers such surf and uzbl are more attractive.

The only way I can think of with firefox would be to have a javascript running which logged the shown page's url to the clipboard.

But if you can make do with do with just the window title - well, you've already found the solution

I myself would love to know how to grab the url of the current page from outside of firefox.
 
  


Reply

Tags
bash, cli, url address


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
URL to IP address cleopard Programming 5 03-28-2008 10:39 AM
Change URL Address Bar Font in Firefox lebabyg Linux - Software 2 12-28-2007 08:56 AM
Force using URL (ServerName) instead of IP address hapytran Linux - Server 2 12-06-2007 07:24 PM
Firefox Configuration via url address box b18b Linux - Software 3 02-06-2007 05:36 PM
anyone can decode this URL address? sirpelidor Linux - Software 8 02-21-2004 02:49 PM


All times are GMT -5. The time now is 10:02 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration