Logo Search packages:      
Sourcecode: waimea version File versions  Download package

waexec ( const char *  command,
char *  displaystring 
)

Executes a command line.

Executes a command line in the 'sh' shell.

Parameters:
format Command line to execute
displaystring Displaystring to export prior to execution

Definition at line 270 of file Waimea.cc.

Referenced by timeout().

                                                      {
    if (! fork()) {
        setsid();
        putenv(displaystring);
        execl("/bin/sh", "/bin/sh", "-c", command, NULL);
        exit(0);
    }
}


Generated by  Doxygen 1.6.0   Back to index