p=subprocess.Popen([ 'c:\path\to\your.exe', '-argument1', '-argument2', 'AA', '/auto' ], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) while True: line = p.stdout.readline() message = line.rstrip() if !message: arcpy.AddMessage("[INFO] Tool complete.") p.stdout.close() break else: arcpy.AddMessage(message)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.