I am trying to get adb logcat and save to a file. I tried POPEN and call as below
    f = open("/Users/log.txt")
    subprocess.call(["adb logcat"], stdout=f)
    f_read = f.read()
    print f_read
But I get error
  File "testPython.py", line 198, in getadbLogs
    subprocess.call(["adb logcat"], stdout=f)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
**OSError: [Errno 2] No such file or directory**
I am not sure what I am doing wrong. Is it possible to get adb logcat logs using subprocess? I checked the file path is right.
 
    