3 ms·
I agree, subprocess is a pain in the ass. But there are other ways at invoking things, like with grave quotes. Personally I think control structures in bash ar
by tomc1985 8y ago
I agree, subprocess is a pain in the ass. But there are other ways at invoking things, like with grave quotes.
Personally I think control structures in bash are too convoluted and easy to get lost in.
Also if you are running long-lived high-output processes and you want your program to be interactive, then of course you have to do multithreading shenanigans. At that point you're going to need a proper event queue or something at the very least. The first use case I can think of (logging dmesg -w) would definitely not work using a naive approach