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_w">
15
<refname>unix_w</refname>
16
<refpurpose>shell (sh) command execution, output
17
redirected to scilab window
21
<title>Calling Sequence</title>
22
<synopsis>unix_w(cmd)</synopsis>
25
<title>Arguments</title>
30
<para>a character string</para>
36
<title>Description</title>
38
Sends a string <literal>cmd</literal> to Unix for execution by the sh shell.
39
The standard output is redirected to scilab window. Unix execution errors
40
are trapped; *NOTE* that only the last shell command error is reported
41
when a list of command separated by ";" is sent: this is not
46
<title>Examples</title>
47
<programlisting role="example"><![CDATA[
15
<refname>unix_w</refname>
16
<refpurpose>shell (sh) command execution, output
17
redirected to scilab window
21
<title>Calling Sequence</title>
22
<synopsis>unix_w(cmd)</synopsis>
25
<title>Arguments</title>
30
<para>a character string</para>
36
<title>Description</title>
38
Sends a string <literal>cmd</literal> to Unix for execution by the sh shell.
39
The standard output is redirected to scilab window. Unix execution errors
40
are trapped; *NOTE* that only the last shell command error is reported
41
when a list of command separated by ";" is sent: this is not
46
<title>Examples</title>
47
<programlisting role="example"><![CDATA[
48
48
if getos() == 'Windows' then
49
49
unix_w("dir "+'""'+WSCI+"\modules"+'""');
51
51
unix_w("ls $SCI/modules");
53
53
]]></programlisting>
55
<refsection role="see also">
56
<title>See Also</title>
57
<simplelist type="inline">
59
<link linkend="edit">edit</link>
62
<link linkend="manedit">manedit</link>
65
<link linkend="unix_g">unix_g</link>
68
<link linkend="unix_s">unix_s</link>
71
<link linkend="unix_x">unix_x</link>
74
<link linkend="unix">unix</link>
55
<refsection role="see also">
56
<title>See Also</title>
57
<simplelist type="inline">
59
<link linkend="edit">edit</link>
62
<link linkend="manedit">manedit</link>
65
<link linkend="unix_g">unix_g</link>
68
<link linkend="unix_s">unix_s</link>
71
<link linkend="unix_x">unix_x</link>
74
<link linkend="unix">unix</link>