Im trying to iterate in loop after the subprocess call but getting the error
from subprocess import PIPE, call
cmd1 = 'find ./ -maxdepth 1 -name *.xml -type f -mtime +1'
result = call(cmd1,shell=True)
resultlist = result.split('/n')
for fname in resultlist:
print(FileName - ':fname)
resultlist = result.split('/n') AttributeError: 'int' object has no attribute 'split'