Running External Commands in Python (Shell or Otherwise)
TLDR You probably want: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import subprocess import sys try: cp = subprocess.run( ["echo", "hello world"], capture_output=True, check=Tr...
Blog and portfolio focused on Linux, Kubernetes, containers, DevOps, cloud, and other technical things.
TLDR You probably want: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import subprocess import sys try: cp = subprocess.run( ["echo", "hello world"], capture_output=True, check=Tr...
Ok I’ll admit it, the title is a bit dramatic. Makefiles and shell scripts are here to stay, and that’s fine. I’m wouldn’t make the argument that any tool is the perfect tool for all tasks all the ...
This is one of those things that I do so much but always need to think. So I’m going to create some documentation for myself, and maybe it’ll help others. Specifically, I’m going to setup an extern...
A few weeks ago I blogged about how to implement automatic session persistence. This quickly became a really great user experience for me. But something was wrong… The problem was when I would cre...
A lot of times there is an incorrect assumption that adding nines to your SLO is linear, both in gains and associated costs. Unfortunately, this idea can cause a lot of unnecessary burden on the en...