pcdsutils.ext_scripts.call_script
- pcdsutils.ext_scripts.call_script(args, timeout=None, ignore_return_code=False)[source]
Helper script for external script error handling and logging.
- Parameters:
- argslist of str
The script name and arguments. See subprocess.check_output.
- timeoutint or float, optional
The time to wait before marking the script call as failed. If omitted, we wait forever.
- ignore_return_codebool, optional
Defaults to False. If True, we’ll ignore the return code and return the output anyway, even though the script failed.
- Returns:
- outputstr
String output from the script call. This is a single string with lines separated by newline characters.