Wow that's old school.
Here we have an agent integrated into langchain that executes the command directly on the server. If there are any errors it uses ai to debug and fix them too.
!/s see https://python.langchain.com/en/latest/modules/agents/toolki...