Any remarks for doing bash script more tread save ?
The follow bash script mark adressbar from firefox, copy the url, echo the url, extract the domain name and echo the domain name.
The script working some rounds and after some time like 10 minutes or 5 hours, xdotool send by self, additional and without to stop by self, additional to the running script, by self by script used keys. bash script: Quote:
Error": the keyboard keys which send by script after some times by self, sometimes without to stopp to send: Quote:
|
I'd approach this from a different angle. To get URLs from the address bar, you can evaluate the contents of recovery.jsonlz4 as described here.
You'll have to unpack it first: either with lz4jsoncat (package lz4json is available in recent Debian-based distros, but it's easy to compile from source) or with a simple Python script (needs to be slightly adjusted to work with recent versions of lz4): Code:
sed -i '/^#/!s/lz4/&.block/' mozlz4a.py Code:
python3 mozlz4a.py -d \ |
[QUOTE=shruggy;6209117]I'd approach this from a different angle. To get URLs from the address bar, you can evaluate the contents of recovery.jsonlz4 as described here.
Firefox dont offer "recovery.js" since some time. I cant do it on this way. It tryed to do by some python scripts from the new location and filename. A I didnt be successfull on this. So I try to do it by some shortcuts and bash. Quote:
By the above one, I get not the URL or Domain from current page. I get only the URL from my startpage. |
The Python script you posted works for me. Obviously, you'll have to adjust the files = line:
Code:
files = path.glob('*.default*/sessionstore-backups/recovery.jsonlz4' |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 10:01 PM. |