I am new to the subprocess.call function and I have tried different combinations of the same call but it is not working.
I am trying to execute the following command
example:
subprocess.call(['ps','aux']) lines=subprocess.check_output(['ls','-al']) line_list = lines.split('\n') or handle = subprocess.Popen('ls',stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE,close_fds=True) handle.stdout.read()