Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
roots.cxx File Reference
#include <cstdio>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cerrno>
#include "TInterpreter.h"
#include "TROOT.h"
#include "TApplication.h"
#include "TPluginManager.h"
#include "TSystem.h"
#include "TString.h"
Include dependency graph for roots.cxx:

Functions

int main (int argc, char **argv)
 The main program: start a TApplication which connects back to the client.
static Int_t MakeCleanupScript (Int_t loglevel)
 Create a script that can be executed to cleanup this process in case of problems.
static FILE * RedirectOutput (TString &logfile, const char *loc)
 Redirect stdout to 'logfile'.

Variables

static const char * gAppName = "roots"

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

The main program: start a TApplication which connects back to the client.

Definition at line 39 of file roots.cxx.

◆ MakeCleanupScript()

Int_t MakeCleanupScript ( Int_t loglevel)
static

Create a script that can be executed to cleanup this process in case of problems.

Return 0 on success, -1 in case of any problem.

Definition at line 160 of file roots.cxx.

◆ RedirectOutput()

FILE * RedirectOutput ( TString & logfile,
const char * loc )
static

Redirect stdout to 'logfile'.

This log file will be flushed to the client or master after each command. On success return a pointer to the open log file. Return 0 on failure.

Definition at line 115 of file roots.cxx.

Variable Documentation

◆ gAppName

const char* gAppName = "roots"
static

Definition at line 34 of file roots.cxx.