GNU Octave  4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Enumerations | Functions | Variables
toplev.cc File Reference
#include <cerrno>
#include <cstdlib>
#include <new>
#include <sstream>
#include <string>
#include "async-system-wrapper.h"
#include "child-list.h"
#include "lo-error.h"
#include "oct-fftw.h"
#include "oct-locbuf.h"
#include "oct-syscalls.h"
#include "str-vec.h"
#include "wait-for-input.h"
#include "build-env.h"
#include "liboctinterp-build-info.h"
#include "call-stack.h"
#include "defaults.h"
#include "defun.h"
#include "error.h"
#include "file-io.h"
#include "octave.h"
#include "oct-map.h"
#include "ovl.h"
#include "ov.h"
#include "pager.h"
#include "procstream.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include <version.h>
Include dependency graph for toplev.cc:

Go to the source code of this file.

Macros

#define SHELL_PATH   "/bin/sh"
 

Enumerations

enum  system_exec_type { et_sync, et_async }
 

Functions

 disp (text)
 
OCTAVE_EXPORT octave_value_list Fsystem (const octave_value_list &args, int nargout) ar
 
OCTAVE_EXPORT octave_value_list Fwarranty (const octave_value_list &, int)
 
nd group nd example oindent or
xample 
printf ("%s\n", nthargout(2,"system","cmd"))
 
static octave_value_list run_command_and_return_output (const std::string &cmd_str)
 

Variables

nd example The ode {system} function can return two values. The first is the exit status of the command and the second is any output from the command that was written to the standard output stream. For example
 
 text = system ("cmd")
 
nd example The xample [status, output] = system ("echo foo; exit 2")
 

Macro Definition Documentation

#define SHELL_PATH   "/bin/sh"

Definition at line 67 of file toplev.cc.

Enumeration Type Documentation

Enumerator
et_sync 
et_async 

Definition at line 147 of file toplev.cc.

Function Documentation

disp ( text  )

Referenced by G__eigs__().

OCTAVE_EXPORT octave_value_list Fsystem ( const octave_value_list args,
int  nargout 
)

Definition at line 199 of file toplev.cc.

Referenced by F__open_with_system_app__(), and install_toplev_fcns().

OCTAVE_EXPORT octave_value_list Fwarranty ( const octave_value_list ,
int   
)

Definition at line 74 of file toplev.cc.

References octave_name_version_and_copyright(), octave_stdout, and ovl().

Referenced by install_toplev_fcns().

nd group nd example oindent or xample printf ( "%s\n"  ,
nthargout(2,"system","cmd")   
)
static octave_value_list run_command_and_return_output ( const std::string cmd_str)
static

Variable Documentation

nd example oindent will set the variable and the variable ode {system} function can return two values. The first is the exit status of the command and the second is any output from the command that was written to the standard output stream. For example

Definition at line 199 of file toplev.cc.

text = system ("cmd")

Definition at line 199 of file toplev.cc.

nd example The xample[status, output] = system ("echo foo; exit 2")

Definition at line 199 of file toplev.cc.