I made 2 classes: Input which implements read method, and Output which implements write method
I am trying to call a shell command and capture the input and output. This is my code:
import subprocess command = "date" output = Output() input = Input() process = subprocess.Popen(command, stdout=output, stdin=input, shell=False) but when I check the output instance it says that it contains no data.