466
|
1 <refentry id="system">
|
|
2 <refnamediv>
|
529
|
3 <refname>System</refname>
|
|
4 <refpurpose>shell command interpreter</refpurpose>
|
466
|
5 </refnamediv>
|
|
6
|
|
7 <refsynopsisdiv>
|
|
8 <funcsynopsis>
|
|
9 <funcprototype>
|
|
10 <funcdef><function>system</function></funcdef>
|
529
|
11 <paramdef>char *<parameter>string</parameter></paramdef>
|
466
|
12 </funcprototype>
|
|
13 </funcsynopsis>
|
|
14
|
|
15 </refsynopsisdiv>
|
|
16
|
|
17 <refsect1><title>Description</title>
|
|
18 <para>
|
529
|
19 System passes its argument to "shell" which executes it as a
|
|
20 command line. The task is suspended until the shell command
|
|
21 is completed and system returns the shell's exit status. The
|
|
22 maximum length of string is 80 characters. If a longer string
|
|
23 is needed, use os9fork.
|
|
24 </para>
|
|
25 </refsect1>
|
|
26 <refsect1><title>See Also</title>
|
|
27 <para>
|
545
|
28 System calls
|
|
29 <link linkend="os9fork">os9fork()</link>,
|
|
30 <link linkend="wait">wait()</link>.
|
466
|
31 </para>
|
|
32 </refsect1>
|
|
33 </refentry>
|