BartekPL BartekPL - 1 year ago 96
Linux Question

How to extract URL actually opened page from browser i.e. Google Chrome using Linux bash script?

I need some help.

I wanna write bash script in Linux that need URL actually opened page in browser.

I try found some answer on Stack, but I failed.

How can I do this?

  1. Is there some file with history of opened URL that I can extract from it?

  2. Or there is some more complicated way? Maybe you know some way of get URL to file? And I can get it then from this file?

  3. Maybe you know some other ways of do that...

I don't know how do this...

Any help would be appreciated.:)

Answer Source

Put the url to the window title with , then you can see it with wmctrl -l

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download