mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-26 18:02:17 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@189236 c90b9560-bf6c-de11-be94-00142212c4b1
89 lines
2.9 KiB
XML
89 lines
2.9 KiB
XML
<?xml version='1.0' encoding='iso-8859-1'?>
|
|
<!-- $Revision: 1.4 $ -->
|
|
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
|
<refentry id="function.ssh2-shell">
|
|
<refnamediv>
|
|
<refname>ssh2_shell</refname>
|
|
<refpurpose>
|
|
Demande un shell intéractif
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>ssh2_shell</methodname>
|
|
<methodparam><type>resource</type><parameter>session</parameter></methodparam>
|
|
<methodparam choice="opt"><type>string</type><parameter>term_type</parameter></methodparam>
|
|
<methodparam choice="opt"><type>array</type><parameter>env</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>width</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>height</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>width_height_type</parameter></methodparam>
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
<function>ssh2_shell</function> ouvre un shell sur le serveur distant et
|
|
lui alloue un flux.
|
|
</para>
|
|
|
|
<simpara>
|
|
<function>ssh2_shell</function> ouvre un shell sur le serveur distant et
|
|
lui alloue un flux. <parameter>term_type</parameter> doit correspondre à une
|
|
des entrées du fichier <literal>/etc/termcap</literal> du système cible et vaut
|
|
par défaut <literal>vanilla</literal>.
|
|
<parameter>env</parameter> doit être passé en tant qu'un tableau associatif
|
|
de paire nom/valeur à définir dans l'environnement cible.
|
|
</simpara>
|
|
|
|
<simpara>
|
|
<parameter>width</parameter> et <parameter>height</parameter>
|
|
définissent la hauteur et la largeur du terminal virtuel alloué au processus du shell.
|
|
<parameter>width_height_type</parameter> doit être soit
|
|
<constant>SSH2_TERM_UNIT_CHARS</constant>, soit
|
|
<constant>SSH2_TERM_UNIT_PIXELS</constant>.
|
|
</simpara>
|
|
|
|
<example>
|
|
<title>Exécution d'une commande</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$connection = ssh2_connect('shell.example.com', 22);
|
|
ssh2_auth_password($connection, 'username', 'password');
|
|
|
|
$stream = ssh2_shell($connection, 'vt102', null, 80, 24, SSH2_TERM_UNIT_CHARS);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
|
|
<simpara>
|
|
Voir aussi
|
|
<function>ssh2_exec</function>,
|
|
<function>ssh2_tunnel</function> et
|
|
<function>ssh2_fetch_stream</function>.
|
|
</simpara>
|
|
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|