Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

7 May, 2024: fms is rebuilding. Don't expect much in that section for quite a few days, maybe longer.


computers / alt.os.linux.mint / Re: Intercept/read dmesg and take action

SubjectAuthor
* Intercept/read dmesg and take actionservoloro
`- Re: Intercept/read dmesg and take actionArti F. Idiot

1
Intercept/read dmesg and take action

<uodui2$35j4a$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7472&group=alt.os.linux.mint#7472

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: sessantaquattrobits@gmail.com (servoloro)
Newsgroups: alt.os.linux.mint
Subject: Intercept/read dmesg and take action
Date: Fri, 19 Jan 2024 14:47:46 +0100
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <uodui2$35j4a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 19 Jan 2024 13:47:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f238d0c0021bb947a9934a250973bc43";
logging-data="3329162"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18eMrKzm9VPnUH4cpgk8A1QmwmYxIKHzN4="
User-Agent: Betterbird (Linux)
Cancel-Lock: sha1:b/VTSmlxdG321LQjpfEjDLXi4Us=
Content-Language: it
 by: servoloro - Fri, 19 Jan 2024 13:47 UTC

I'd like to intecept some messagges from dmesg and execute some
command/clist if appropriate.
Any suggestion apart issue
dmesg > file.txt
and then read and elaborate file.txt ?
Thanks in advance :-)

Re: Intercept/read dmesg and take action

<uoe2td$2g2a$1@nnrp.usenet.blueworldhosting.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=7473&group=alt.os.linux.mint#7473

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!news.niel.me!news.samoylyk.net!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: addr@is.invalid (Arti F. Idiot)
Newsgroups: alt.os.linux.mint
Subject: Re: Intercept/read dmesg and take action
Date: Fri, 19 Jan 2024 08:02:05 -0700
Organization: Anarchists of America
Message-ID: <uoe2td$2g2a$1@nnrp.usenet.blueworldhosting.com>
References: <uodui2$35j4a$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 19 Jan 2024 15:02:05 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
logging-data="81994"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:T0QmcnDg9Omh/ciqE8njT3tinFs= sha256:H5qm9uXgq67wUscR50Qpj3AZwPQJ6LjsU93a09kgHVA=
sha1:5TEi/mECoBhnKiXz2Uc7YF3yN/E= sha256:Yt1yuz3Z2O4ks+xCUnF3YSorAvMtBawjgyvbUhmmKng=
In-Reply-To: <uodui2$35j4a$1@dont-email.me>
Content-Language: en-US
X-Received-Bytes: 1693
 by: Arti F. Idiot - Fri, 19 Jan 2024 15:02 UTC

On 1/19/24 6:47 AM, servoloro wrote:
> I'd like to intecept some messagges from dmesg and execute some
> command/clist if appropriate.
> Any suggestion apart issue
>  dmesg > file.txt
> and then read and elaborate file.txt ?
> Thanks in advance :-)

Here's a simple "SD device attached" notifier:

dmesg -W |\
awk '/\[sd.* Attached/{system("notify-send -t 2000 device\\attached")}'

The "-W" makes dmesg work like "tail -n0 -f <file>".

Probably you'd want to use crontab or create a custom 'Atartup
Applications' script for something that needs to run continually.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor