Relative Content

Tag Archive for pythonpython-3.xsubprocess

How do I analyze the terminal input and output in Python while executing another script?

The idea behind the program I’m trying to create is a file that can help grade programming exercises while allowing the students freedom to meet the tasks without telling them exactly how to accomplish them. I would like to be able to use a program to analyze the inputs and outputs to the terminal as they occur rather than analyzing everything in a stdout after the program has finished running.

PermissionError: WinError 5 , cant access msi afterburner app with subprocess

I am trying to create a python script to auto change profiles in my MSI Afterburner, but I am stuck in a PermissionError: [WinError 5] Access is denied error. I have tried to see if its a path/permission problem and its not. I even tried adding the MSI Afterburner path in the system enviromenttal variables but nothing has worked.

subprocess stdin not working with less as process

I have a function that renders an input file to a custom format.
I want that a user can start this script in one terminal to view the rendered output with a pager.
When he edits the source-file in another terminal and saves, these changed should be rerendered and updated in the pager.