Back to index

texmacs  1.0.7.15
Functions
unix_sys_utils.hpp File Reference
#include "string.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int unix_system (string)
int unix_system (string, string &)

Function Documentation

int unix_system ( string  )

Definition at line 17 of file unix_sys_utils.cpp.

                       {
  char* _s = as_charp (s * " > /dev/null 2>&1");
  int ret = system (_s);
  tm_delete_array (_s);  
  return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int unix_system ( string  ,
string  
)

Definition at line 25 of file unix_sys_utils.cpp.

                                         {
  url temp= url_temp ();
  string temp_s= escape_sh (concretize (temp));
  char* _cmd = as_charp (cmd * " > " * temp_s * " 2>&1");
  int ret = system (_cmd);
  tm_delete_array (_cmd);
  bool flag= load_string (temp, result, false);
  remove (temp);
  if (flag) result= "";
  return ret;
}

Here is the call graph for this function: