GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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>
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") |
enum system_exec_type |
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().
Referenced by Gamd(), hexdump(), Vt102Emulation::ReportErrorToken(), Vt102Emulation::scan_buffer_report(), and Vt102Emulation::tau().
|
static |
Definition at line 98 of file toplev.cc.
References action_container::add_delete(), action_container::add_fcn(), procstreambase::close(), EAGAIN, error(), procstreambase::file_number(), frame, octave_wait_for_input(), ovl(), procstreambase::pid(), octave::child_list::remove(), retval, octave::sys::wexitstatus(), and octave::sys::wifexited().