Lines Matching refs:command

32 // Returns TRUE if the command name could be initiated and
270 // Elaborate the command line: "cmd arg1 arg2..."
273 // Returns TRUE if the command name could be initiated and
277 BOOL getCommandLine(const char* argv[], char* command, unsigned int maxSize)
283 debug("Constructing full command line from arguments:");
297 sprintf (&command[curCmdInd], " ");
298 curCmdInd = strlen(command);
328 sprintf (&command[curCmdInd], "\"%s\"", curarg);
329 curCmdInd = strlen (command);
341 sprintf (&command[curCmdInd], "%s", curarg);
342 curCmdInd = strlen (command);
353 sprintf (&command[curCmdInd], "\"\"");
354 curCmdInd = strlen (command);
369 debug("The full commandline is '%s'.", command);
379 // command line (and its argumets) that we want to execute (basically the java
380 // command that we want to start the server). The main reasons
381 // to have the command line passed are:
384 // server is started by leaving most of the logic in the command-line.
401 char command[COMMAND_SIZE];
403 if (getCommandLine(argv, command, COMMAND_SIZE))
405 childPid = spawn(command, TRUE);
420 debugError("Couldn't start the child process because the full command line could not be constructed.");
478 // it to any command prompt (the difference with start is basically that here
491 // command line that we want to execute (basically the java
492 // command that we want to display the status panel). The main reasons
493 // to have the command line passed are:
496 // server is started by leaving most of the logic in the command-line.
498 // Returns the pid of the process associated with the command if it could be
505 char command[COMMAND_SIZE];
507 if (getCommandLine(argv, command, COMMAND_SIZE))
509 returnValue = spawn(command, TRUE);
512 debugError("Failed to launch the child process '%s'.", command);
516 debug("Successfully launched the child process '%s'.", command);
521 debugError("Couldn't launch the child process because the full command line could not be constructed.");
532 // Returns the exit code of the process associated with the command if it
544 char command[COMMAND_SIZE];
546 if (getCommandLine(argv, command, COMMAND_SIZE))
548 createOk = createChildProcess((char*)command, TRUE, &procInfo);
593 "Expected command line args of [subcommand], but got %d arguments.\n";