Nov-24-2019, 12:30 PM
Hi Scidam,
Thanks for all your help. The only way I could get this working was with the following:
I now need to find a way to compare the result:
IF Found
do a bunch of other stuff
ELSE
Exit
But I guess that will be for another post.
Thanks again.
kd
Thanks for all your help. The only way I could get this working was with the following:
p = Popen(["grep", "-wl", what, where], stdout=True, stderr=True) p.communicate()[0]It now returns proper grep output, i.e., when found it returns the filename, when not found, it returns nothing.
I now need to find a way to compare the result:
IF Found
do a bunch of other stuff
ELSE
Exit
But I guess that will be for another post.
Thanks again.
kd