DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Triggering MacOS Notifications inside the Unix Pipeline with Tee, Grep, and

4 years ago journal.missiondata.com
Triggering MacOS Notifications inside the Unix Pipeline with Tee, Grep, and

Summary: This is a summary of an article originally published by the source. Read the full original article here →

Yes, my thoughts are usually this mundane and obscure. I searched the web hoping for likeminded people who’d had a similar obscure, mundane thought and were motivated to do something about it.

Anyway, I’ve added teeshout to my bash config and we’ll see how often I use it in the coming weeks.

The STDOUT.sync=true at the beginning is important because Ruby (and it turns out other tools like grep, below) buffer output when it is not going straight to the terminal; run that command directly and it’s all chatty, but when piped to another command things get real quiet.

So tee will be command1 here, passing my target output to the terminal, and command2 will be my filtering and notification commands.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com