Man Scilab

unix
Scilab Function

unix - shell (sh) command execution

Calling Sequence

stat=unix(command-name)

Parameters

Description

Sends a string command-name to Unix for execution by the sh shell. Standard output and standard errors of the shell command are written in the calling shell. stat gives -1 if unix can't be called (Not enough system memory available) or the sh return code.

Examples


unix("ls $SCI/demos");
deff('wd=dir()','if MSDOS then unix(''cd>''+TMPDIR+''\path'');..
                else unix(''pwd>''+TMPDIR+''/path'');end..
      wd=read(TMPDIR+''/path'',1,1,''(a)'')')
wd=dir()
 
  

See Also

edit ,   manedit ,   unix_g ,   unix_s ,   unix_w ,   unix_x ,   host ,  

Back