~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/io/help/en_US/unix.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 *
12
12
 -->
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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="unix">
14
 
  <refnamediv>
15
 
    <refname>unix</refname>
16
 
    <refpurpose>shell (sh) command
17
 
      execution
18
 
    </refpurpose>
19
 
  </refnamediv>
20
 
  <refsynopsisdiv>
21
 
    <title>Calling Sequence</title>
22
 
    <synopsis>stat=unix(command-name)</synopsis>
23
 
  </refsynopsisdiv>
24
 
  <refsection>
25
 
    <title>Arguments</title>
26
 
    <variablelist>
27
 
      <varlistentry>
28
 
        <term>command-name</term>
29
 
        <listitem>
30
 
          <para>A character string containing Unix sh instruction</para>
31
 
        </listitem>
32
 
      </varlistentry>
33
 
      <varlistentry>
34
 
        <term>stat</term>
35
 
        <listitem>
36
 
          <para>An integer flag</para>
37
 
        </listitem>
38
 
      </varlistentry>
39
 
    </variablelist>
40
 
  </refsection>
41
 
  <refsection>
42
 
    <title>Description</title>
43
 
    <para>
44
 
      Sends a string <literal>command-name</literal> to Unix for execution by the
45
 
      sh shell. Standard output and standard errors of the shell command are
46
 
      written in the calling shell. <literal>stat</literal> gives -1 if unix can't be
47
 
      called (Not enough system memory available) or the sh return code.
48
 
    </para>
49
 
  </refsection>
50
 
  <refsection>
51
 
    <title>Examples</title>
52
 
    <programlisting role="example"><![CDATA[ 
 
14
    <refnamediv>
 
15
        <refname>unix</refname>
 
16
        <refpurpose>shell (sh) command
 
17
            execution
 
18
        </refpurpose>
 
19
    </refnamediv>
 
20
    <refsynopsisdiv>
 
21
        <title>Calling Sequence</title>
 
22
        <synopsis>stat=unix(command-name)</synopsis>
 
23
    </refsynopsisdiv>
 
24
    <refsection>
 
25
        <title>Arguments</title>
 
26
        <variablelist>
 
27
            <varlistentry>
 
28
                <term>command-name</term>
 
29
                <listitem>
 
30
                    <para>A character string containing Unix sh instruction</para>
 
31
                </listitem>
 
32
            </varlistentry>
 
33
            <varlistentry>
 
34
                <term>stat</term>
 
35
                <listitem>
 
36
                    <para>An integer flag</para>
 
37
                </listitem>
 
38
            </varlistentry>
 
39
        </variablelist>
 
40
    </refsection>
 
41
    <refsection>
 
42
        <title>Description</title>
 
43
        <para>
 
44
            Sends a string <literal>command-name</literal> to Unix for execution by the
 
45
            sh shell. Standard output and standard errors of the shell command are
 
46
            written in the calling shell. <literal>stat</literal> gives -1 if unix can't be
 
47
            called (Not enough system memory available) or the sh return code.
 
48
        </para>
 
49
    </refsection>
 
50
    <refsection>
 
51
        <title>Examples</title>
 
52
        <programlisting role="example"><![CDATA[ 
53
53
if getos() <> 'Windows' then
54
54
  unix("ls $SCI/demos");
55
55
end
65
65
 
66
66
wd=directory()
67
67
 ]]></programlisting>
68
 
  </refsection>
69
 
  <refsection role="see also">
70
 
    <title>See Also</title>
71
 
    <simplelist type="inline">
72
 
      <member>
73
 
        <link linkend="edit">edit</link>
74
 
      </member>
75
 
      <member>
76
 
        <link linkend="manedit">manedit</link>
77
 
      </member>
78
 
      <member>
79
 
        <link linkend="unix_g">unix_g</link>
80
 
      </member>
81
 
      <member>
82
 
        <link linkend="unix_s">unix_s</link>
83
 
      </member>
84
 
      <member>
85
 
        <link linkend="unix_w">unix_w</link>
86
 
      </member>
87
 
      <member>
88
 
        <link linkend="unix_x">unix_x</link>
89
 
      </member>
90
 
      <member>
91
 
        <link linkend="host">host</link>
92
 
      </member>
93
 
    </simplelist>
94
 
  </refsection>
 
68
    </refsection>
 
69
    <refsection role="see also">
 
70
        <title>See Also</title>
 
71
        <simplelist type="inline">
 
72
            <member>
 
73
                <link linkend="edit">edit</link>
 
74
            </member>
 
75
            <member>
 
76
                <link linkend="manedit">manedit</link>
 
77
            </member>
 
78
            <member>
 
79
                <link linkend="unix_g">unix_g</link>
 
80
            </member>
 
81
            <member>
 
82
                <link linkend="unix_s">unix_s</link>
 
83
            </member>
 
84
            <member>
 
85
                <link linkend="unix_w">unix_w</link>
 
86
            </member>
 
87
            <member>
 
88
                <link linkend="unix_x">unix_x</link>
 
89
            </member>
 
90
            <member>
 
91
                <link linkend="host">host</link>
 
92
            </member>
 
93
        </simplelist>
 
94
    </refsection>
95
95
</refentry>