bilby.core.utils.cmd.run_commandline
- bilby.core.utils.cmd.run_commandline(cl, log_level=20, raise_error=True, return_output=True)[source]
Run a string cmd as a subprocess, check for errors and return output.
- Parameters:
- cl: str
Command to run
- log_level: int
See https://docs.python.org/2/library/logging.html#logging-levels, default is ‘20’ (INFO)