LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Automaticaly get current URL address for use in bash? (https://www.linuxquestions.org/questions/linux-networking-3/automaticaly-get-current-url-address-for-use-in-bash-832657/)

yooy 09-16-2010 03:57 PM

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.)

szboardstretcher 09-17-2010 09:19 AM

Quote:

Originally Posted by yooy (Post 4099820)
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)

yooy 09-18-2010 01:03 PM

thanks for that, however i found a walkaround for current problem by wmctrl-l+gprep to follow browser window title. Thanx

harryhaller 09-18-2010 01:52 PM

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.


All times are GMT -5. The time now is 06:36 PM.