To check whether the subprocess has successfully finished

import subprocess output = subprocess.Popen(query,stdout=subprocess.PIPE,shell=True) output.poll() ret = output.returncode

-- AlbertoGasconBravo - 2015-08-24

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2015-08-24 - AlbertoGasconBravo
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback