Hi Everyone :-)
I'm writing a small Python script that invokes the Linux shell and runs some BASH commands in it.
My problem is, I can't seem to use the output and store it in a Python variable.
Here's what i'm trying:
import subprocess
value = subprocess.call("ls -la", shell=True)
print(variable)
What happens is that the "ls -la" command is executed just fine in the shell window, but the variable "value" is empty.
what am i missing here?
Thanks for the help :-)