.. _f-runcmd: module ``loghelper.run_cmd`` ============================ .. inheritance-diagram:: pyquickhelper.loghelper.run_cmd Short summary +++++++++++++ module ``pyquickhelper.loghelper.run_cmd`` Implements function :func:`run_cmd`. :githublink:`%|py|6` Classes +++++++ +------------------------------------------------------------------------------+-------------------------------------+ | class | truncated documentation | +==============================================================================+=====================================+ | :class:`_AsyncLineReader ` | | +------------------------------------------------------------------------------+-------------------------------------+ | :class:`RunCmdException ` | Raised by function :func:`run_cmd`. | +------------------------------------------------------------------------------+-------------------------------------+ Functions +++++++++ +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +===========================================================================================+===========================================================================================================+ | :func:`decode_outerr ` | Decodes the output or the error after running a command line instructions. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ | :func:`get_interpreter_path ` | Returns the interpreter path. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ | :func:`parse_exception_message ` | Parses the message embedded in an exception and returns the standard output and error if it can be found. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ | :func:`run_cmd ` | Runs a command line and wait for the result. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ | :func:`run_script ` | Runs a script. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ | :func:`skip_run_cmd ` | Has the same signature as :func:`run_cmd` but does nothing. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ | :func:`split_cmp_command ` | Splits a command line. | +-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------+ Properties ++++++++++ +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | property | truncated documentation | +================================================================================+=============================================================================================================================+ | :meth:`daemon ` | A boolean value indicating whether this thread is a daemon thread. This must be set before start() is called, otherwise ... | +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | :meth:`ident ` | Thread identifier of this thread or None if it has not been started. This is a nonzero integer. See the get_ident() ... | +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | :meth:`name ` | A string used for identification purposes only. It has no semantics. Multiple threads may be given the same name. ... | +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ | :meth:`native_id ` | Native integral thread ID of this thread, or None if it has not been started. This is a non-negative integer. ... | +--------------------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------+ Static Methods ++++++++++++++ +------------------------------------------------------------------------------+-------------------------+ | staticmethod | truncated documentation | +==============================================================================+=========================+ | :meth:`getForFd ` | | +------------------------------------------------------------------------------+-------------------------+ Methods +++++++ +---------------------------------------------------------------------------------+-------------------------+ | method | truncated documentation | +=================================================================================+=========================+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------+-------------------------+ | :meth:`eof ` | | +---------------------------------------------------------------------------------+-------------------------+ | :meth:`run ` | | +---------------------------------------------------------------------------------+-------------------------+ Documentation +++++++++++++ .. automodule:: pyquickhelper.loghelper.run_cmd :members: :special-members: __init__ :show-inheritance: