Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Visual/sound notification while terminal output (Read 446 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Visual/sound notification while terminal output

Hello guys. I've started using terminal to launch my firefox. This is because when launching from terminal firefox seems to be using less system resources (ie. lightdm, xfce4 panel, xfce4 session etc) + i have the opportunity to see the output what errors/warnigs ff encounters while running.

Saw firefox creates some warnings when hardening with apparmor but i'm interested in one particular output when some websites or some code on some websites triggers a different kind of warnings like they try to access cpu possible/available/. (possible hidden cryptominer suspect)

My problem is that i wanna correlate the moment when this errors occur with what website i'm currently on that could be the cause of those warnings. Is there any way i can get a popup notification or a sound that can clear this out for me?

PS: I have some other errors but are just benign. Another aspect is that some errors print a time frame when they occur but the others more suspicious no. Tnx for making the time to give this a shot if you have some ideas this also might help others that can have this kind of interest.  ;) , have an awesome weekend!

Re: Visual/sound notification while terminal output

Reply #1
You could simply install espeak-ng and get it to read you the messages that are placed on the terminal, although it might be a bit verbose, so you could try and filter the output like the ls test example piping to grep first:
Code: [Select]
$ firefox | espeak
$ ls | grep Documents | espeak
There are probably other ways to do this too.

Re: Visual/sound notification while terminal output

Reply #2
Wow, that's exactly what i needed. Now i can narrow down potential causes of those errors so i can reproduce and see what really triggers them.  8)  :)

Thank you @####### genius idea 💡