I am attempting to print to the terminal in Python using the following code obtained from similar questions:
cmd = 'test'
output = subprocess.Popen(cmd, stdout=subprocess.PIPE ).communicate()[0]
print(output)
However doing this gives me the output of:
b''
How can I fix my code to properly output to the terminal?