Contents

jai-subprocess

Contents

Made jai-subprocess today. It was starting to be annoying that it was hard to interactively “chat” with subprocesses from Jai. The default system() and execXX() functions in POSIX are only good enough for very basic things.

The situation that system() becomes insufficient for is when you want to capture the return status, the STDOUT and STDERR output, and be able to send input while it’s running. Currently the module is still missing the ability to write to STDIN on the child process, but I’ve run out of time for today.

I’m using this in part to automate some stuff I’m relying on, where I’d like to move away from Python and Bash for a few different reasons. Maybe more on that later.