Esempio n. 1
0
void handleUserCommand()
{
 //       if( chk_pipe()==1)
   //     {

        if (checkBuiltInCommands() == 0) {
		//printf("%d",commandArgc);

		//add_command_to_history(commandArgv);
		//printf("command Argv: %s\n", commandArgv);
                launchJob(commandArgv, "STANDARD", 0, FOREGROUND);
                              //puts(commandArgv[1]);
        }
}
Esempio n. 2
0
/**
 * generic execute void, tries to execute built-in programs first, and everything else then.
 */
void handleUserCommand()
{
        if (checkBuiltInCommands() == 0) {
                launchJob(commandArgv, "STANDARD", 0, FOREGROUND);
        }
}