Reimplemented from DimCommand.
Definition at line 35 of file rshServer.cxx.
References environ, DimServer::getClientName(), DimCommand::getString(), my_system(), outfile, result, resultSrvc, size, str, and DimService::updateService().
38 char commandString[256];
41 int ret,
size, index, sz;
47 cout <<
"Received " << str <<
" from " << client << endl;
49 strcpy(commandString,str);
51 strcat(commandString,
" >& ");
53 strcat(commandString,
"< /dev/null");
55 strcat(commandString,
" > ");
57 strcat(commandString,
" 2>&1 ");
66 strcpy(
result,
"File does not exist");
71 result =
new char[size +1];
74 while(!feof(fd) && size)
76 sz = fread(&
result[index], 1, 512, fd);
static char * getClientName()