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">
15
<refname>unix</refname>
16
<refpurpose>shell (sh) command
21
<title>Calling Sequence</title>
22
<synopsis>stat=unix(command-name)</synopsis>
25
<title>Arguments</title>
28
<term>command-name</term>
30
<para>A character string containing Unix sh instruction</para>
36
<para>An integer flag</para>
42
<title>Description</title>
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.
51
<title>Examples</title>
52
<programlisting role="example"><![CDATA[
15
<refname>unix</refname>
16
<refpurpose>shell (sh) command
21
<title>Calling Sequence</title>
22
<synopsis>stat=unix(command-name)</synopsis>
25
<title>Arguments</title>
28
<term>command-name</term>
30
<para>A character string containing Unix sh instruction</para>
36
<para>An integer flag</para>
42
<title>Description</title>
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.
51
<title>Examples</title>
52
<programlisting role="example"><![CDATA[
53
53
if getos() <> 'Windows' then
54
54
unix("ls $SCI/demos");
67
67
]]></programlisting>
69
<refsection role="see also">
70
<title>See Also</title>
71
<simplelist type="inline">
73
<link linkend="edit">edit</link>
76
<link linkend="manedit">manedit</link>
79
<link linkend="unix_g">unix_g</link>
82
<link linkend="unix_s">unix_s</link>
85
<link linkend="unix_w">unix_w</link>
88
<link linkend="unix_x">unix_x</link>
91
<link linkend="host">host</link>
69
<refsection role="see also">
70
<title>See Also</title>
71
<simplelist type="inline">
73
<link linkend="edit">edit</link>
76
<link linkend="manedit">manedit</link>
79
<link linkend="unix_g">unix_g</link>
82
<link linkend="unix_s">unix_s</link>
85
<link linkend="unix_w">unix_w</link>
88
<link linkend="unix_x">unix_x</link>
91
<link linkend="host">host</link>