Lines Matching refs:command

31 // Returns TRUE if the command name could be initiated and
269 // Elaborate the command line: "cmd arg1 arg2..."
272 // Returns TRUE if the command name could be initiated and
276 BOOL getCommandLine(const char* argv[], char* command, unsigned int maxSize)
282 debug("Constructing full command line from arguments:");
296 sprintf (&command[curCmdInd], " ");
297 curCmdInd = strlen(command);
327 sprintf (&command[curCmdInd], "\"%s\"", curarg);
328 curCmdInd = strlen (command);
340 sprintf (&command[curCmdInd], "%s", curarg);
341 curCmdInd = strlen (command);
352 sprintf (&command[curCmdInd], "\"\"");
353 curCmdInd = strlen (command);
368 debug("The full commandline is '%s'.", command);
378 // command line (and its argumets) that we want to execute (basically the java
379 // command that we want to start the server). The main reasons
380 // to have the command line passed are:
383 // server is started by leaving most of the logic in the command-line.
400 char command[COMMAND_SIZE];
402 if (getCommandLine(argv, command, COMMAND_SIZE))
404 childPid = spawn(command, TRUE);
419 debugError("Couldn't start the child process because the full command line could not be constructed.");
477 // it to any command prompt (the difference with start is basically that here
490 // command line that we want to execute (basically the java
491 // command that we want to display the status panel). The main reasons
492 // to have the command line passed are:
495 // server is started by leaving most of the logic in the command-line.
497 // Returns the pid of the process associated with the command if it could be
504 char command[COMMAND_SIZE];
506 if (getCommandLine(argv, command, COMMAND_SIZE))
508 returnValue = spawn(command, TRUE);
511 debugError("Failed to launch the child process '%s'.", command);
515 debug("Successfully launched the child process '%s'.", command);
520 debugError("Couldn't launch the child process because the full command line could not be constructed.");
531 // Returns the exit code of the process associated with the command if it
543 char command[COMMAND_SIZE];
545 if (getCommandLine(argv, command, COMMAND_SIZE))
547 createOk = createChildProcess((char*)command, TRUE, &procInfo);
592 "Expected command line args of [subcommand], but got %d arguments.\n";