~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/eng/programming/host.xml

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
 
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
 
3
<MAN>
 
4
  <LANGUAGE>eng</LANGUAGE>
 
5
  <TITLE>host</TITLE>
 
6
  <TYPE>Scilab Function</TYPE>
 
7
  <DATE>April 1993</DATE>
 
8
  <SHORT_DESCRIPTION name="host"> Unix or DOS command execution</SHORT_DESCRIPTION>
 
9
  <CALLING_SEQUENCE>
 
10
    <CALLING_SEQUENCE_ITEM>stat=host(command-name)  </CALLING_SEQUENCE_ITEM>
 
11
  </CALLING_SEQUENCE>
 
12
  <PARAM>
 
13
    <PARAM_INDENT>
 
14
      <PARAM_ITEM>
 
15
        <PARAM_NAME>command-name</PARAM_NAME>
 
16
        <PARAM_DESCRIPTION>
 
17
          <SP>: A character string containing Unix sh instruction</SP>
 
18
        </PARAM_DESCRIPTION>
 
19
      </PARAM_ITEM>
 
20
      <PARAM_ITEM>
 
21
        <PARAM_NAME>stat</PARAM_NAME>
 
22
        <PARAM_DESCRIPTION>
 
23
          <SP>: An integer flag</SP>
 
24
        </PARAM_DESCRIPTION>
 
25
      </PARAM_ITEM>
 
26
    </PARAM_INDENT>
 
27
  </PARAM>
 
28
  <DESCRIPTION>
 
29
    <P>
 
30
    Sends a string <VERB>command-name</VERB> to Unix for execution by the command interpreter (sh under Unix, or command.com under DOS). Standard output and standard errors of the shell command are written in the calling shell.
 
31
    <VERB>stat</VERB> gives -1 if host can't be called (Not enough system memory
 
32
    available) or the command interpreter return code.</P>
 
33
  </DESCRIPTION>
 
34
  <EXAMPLE>
 
35
<![CDATA[
 
36
host("ls $SCI/demos");
 
37
host("emacs $SCI/demos/wheel2/Makefile");
 
38
deff('wd=getdir()','if MSDOS then host(''cd>''+TMPDIR+''\path'');..
 
39
                 else host(''pwd>''+TMPDIR+''/path'');end..
 
40
      wd=read(TMPDIR+''/path'',1,1,''(a)'')')
 
41
wd=getdir()
 
42
 ]]>
 
43
  </EXAMPLE>
 
44
  <SEE_ALSO>
 
45
    <SEE_ALSO_ITEM>
 
46
      <LINK>edit</LINK>
 
47
    </SEE_ALSO_ITEM>
 
48
    <SEE_ALSO_ITEM>
 
49
      <LINK>manedit</LINK>
 
50
    </SEE_ALSO_ITEM>
 
51
    <SEE_ALSO_ITEM>
 
52
      <LINK>unix_g</LINK>
 
53
    </SEE_ALSO_ITEM>
 
54
    <SEE_ALSO_ITEM>
 
55
      <LINK>unix_s</LINK>
 
56
    </SEE_ALSO_ITEM>
 
57
    <SEE_ALSO_ITEM>
 
58
      <LINK>unix_w</LINK>
 
59
    </SEE_ALSO_ITEM>
 
60
    <SEE_ALSO_ITEM>
 
61
      <LINK>unix_x</LINK>
 
62
    </SEE_ALSO_ITEM>
 
63
  </SEE_ALSO>
 
64
</MAN>