# SOME DESCRIPTIVE TITLE. # Copyright (C) 1990-2016, Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 2.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-10-30 10:44+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../Doc/library/commands.rst:3 msgid ":mod:`commands` --- Utilities for running commands" msgstr "" #: ../Doc/library/commands.rst:10 msgid "" "The :mod:`commands` module has been removed in Python 3. Use the :mod:" "`subprocess` module instead." msgstr "" #: ../Doc/library/commands.rst:17 msgid "" "The :mod:`commands` module contains wrapper functions for :func:`os.popen` " "which take a system command as a string and return any output generated by " "the command and, optionally, the exit status." msgstr "" #: ../Doc/library/commands.rst:21 msgid "" "The :mod:`subprocess` module provides more powerful facilities for spawning " "new processes and retrieving their results. Using the :mod:`subprocess` " "module is preferable to using the :mod:`commands` module." msgstr "" #: ../Doc/library/commands.rst:27 msgid "" "In Python 3.x, :func:`getstatus` and two undocumented functions (:func:" "`mk2arg` and :func:`mkarg`) have been removed. Also, :func:" "`getstatusoutput` and :func:`getoutput` have been moved to the :mod:" "`subprocess` module." msgstr "" #: ../Doc/library/commands.rst:32 msgid "The :mod:`commands` module defines the following functions:" msgstr "" #: ../Doc/library/commands.rst:37 msgid "" "Execute the string *cmd* in a shell with :func:`os.popen` and return a 2-" "tuple ``(status, output)``. *cmd* is actually run as ``{ cmd ; } 2>&1``, so " "that the returned output will contain output or error messages. A trailing " "newline is stripped from the output. The exit status for the command can be " "interpreted according to the rules for the C function :c:func:`wait`." msgstr "" #: ../Doc/library/commands.rst:46 msgid "" "Like :func:`getstatusoutput`, except the exit status is ignored and the " "return value is a string containing the command's output." msgstr "" #: ../Doc/library/commands.rst:52 msgid "" "Return the output of ``ls -ld file`` as a string. This function uses the :" "func:`getoutput` function, and properly escapes backslashes and dollar signs " "in the argument." msgstr "" #: ../Doc/library/commands.rst:56 msgid "" "This function is nonobvious and useless. The name is also misleading in the " "presence of :func:`getstatusoutput`." msgstr "" #: ../Doc/library/commands.rst:61 msgid "Example::" msgstr "Exemple ::" #: ../Doc/library/commands.rst:78 msgid "Module :mod:`subprocess`" msgstr "" #: ../Doc/library/commands.rst:79 msgid "Module for spawning and managing subprocesses." msgstr ""