~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/programming/host.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH host 1 "April 1993" "Scilab Group" "Scilab Function"
 
2
.so ../sci.an
 
3
.SH NAME
 
4
host - shell (sh) command execution
 
5
.SH CALLING SEQUENCE
 
6
.nf
 
7
stat=host(command-name)
 
8
.fi
 
9
.SH PARAMETERS
 
10
.TP 15
 
11
command-name
 
12
: A character string containing Unix sh instruction
 
13
.TP
 
14
stat
 
15
: An integer flag
 
16
.SH DESCRIPTION
 
17
Sends a string \fVcommand-name\fR to Unix for execution by the sh
 
18
shell. Standard output and standard errors of the shell command are
 
19
written in the calling shell.
 
20
\fVstat\fR gives -1 if host can't be called (Not enough system memory
 
21
available) or the sh return code.
 
22
.SH EXAMPLE
 
23
.nf
 
24
host("ls $SCI/demos");
 
25
host("emacs $SCI/demos/wheel2/Makefile");
 
26
deff('wd=getdir()','if MSDOS then host(''cd>''+TMPDIR+''\\path'');..
 
27
                 else host(''pwd>''+TMPDIR+''/path'');end..
 
28
      wd=read(TMPDIR+''/path'',1,1,''(a)'')')
 
29
wd=getdir()
 
30
.fi
 
31
.SH SEE ALSO
 
32
edit, manedit, unix_g, unix_s, unix_w, unix_x