This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / utils / _process_common / getoutputerror

function

IPython.utils._process_common:getoutputerror

source: /IPython/utils/_process_common.py:157

Signature

def getoutputerror(cmd: str | list[str]) → tuple[str, str]

Summary

Return (standard output, standard error) of executing cmd in a shell.

Extended Summary

Accepts the same arguments as os.system().

Parameters

cmd : str or list

A command to be executed in the system shell.

Returns

stdout : str
stderr : str

Aliases

  • IPython.utils._process_common.getoutputerror