13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="host" xml:lang="en">
15
<refname>host</refname>
16
<refpurpose>execu��o de comandos do Unix ou DOS</refpurpose>
19
<title>Seq��ncia de Chamamento</title>
20
<synopsis>stat=host(command-name)</synopsis>
23
<title>Par�metros</title>
26
<term>command-name</term>
28
<para>um string contendo uma instru��o sh Unix </para>
34
<para>um flag ("indicador") inteiro </para>
40
<title>Descri��o</title>
42
Envia um string <literal>command-name</literal> para o Unix para
43
execu��o pelo interpretador de comando (sh em Unix, ou command.com em
44
DOS). As sa�das e os erros padr�es do comando do shell s�o escritos no
45
shell chamado. <literal>stat</literal> fornece -1 se o "host" (significa
46
"anfitri�o") n�o pode ser chamado (mem�ria dispon�vel do sistema
47
insuficiente) ou se o interpretador de comando retorna o c�digo.
51
<title>Exemplos</title>
52
<programlisting role="example"><![CDATA[
15
<refname>host</refname>
16
<refpurpose>execu��o de comandos do Unix ou DOS</refpurpose>
19
<title>Seq��ncia de Chamamento</title>
20
<synopsis>stat=host(command-name)</synopsis>
23
<title>Par�metros</title>
26
<term>command-name</term>
28
<para>um string contendo uma instru��o sh Unix </para>
34
<para>um flag ("indicador") inteiro </para>
40
<title>Descri��o</title>
42
Envia um string <literal>command-name</literal> para o Unix para
43
execu��o pelo interpretador de comando (sh em Unix, ou command.com em
44
DOS). As sa�das e os erros padr�es do comando do shell s�o escritos no
45
shell chamado. <literal>stat</literal> fornece -1 se o "host" (significa
46
"anfitri�o") n�o pode ser chamado (mem�ria dispon�vel do sistema
47
insuficiente) ou se o interpretador de comando retorna o c�digo.
51
<title>Exemplos</title>
52
<programlisting role="example"><![CDATA[
53
53
//criando uma fun��o getdir baseda no host
54
54
function wd=getdir()
55
55
if getos() == 'Windows' then
64
64
]]></programlisting>
66
<refsection role="see also">
67
<title>Ver Tamb�m</title>
68
<simplelist type="inline">
70
<link linkend="edit">edit</link>
73
<link linkend="manedit">manedit</link>
76
<link linkend="unix_g">unix_g</link>
79
<link linkend="unix_s">unix_s</link>
82
<link linkend="unix_w">unix_w</link>
85
<link linkend="unix_x">unix_x</link>
66
<refsection role="see also">
67
<title>Ver Tamb�m</title>
68
<simplelist type="inline">
70
<link linkend="edit">edit</link>
73
<link linkend="manedit">manedit</link>
76
<link linkend="unix_g">unix_g</link>
79
<link linkend="unix_s">unix_s</link>
82
<link linkend="unix_w">unix_w</link>
85
<link linkend="unix_x">unix_x</link>