#invokes SHELL, then waits until termination of console #to call CMD...not what i need system("./SHELL\nCMD\n"); #invokes the SHELL, enters command into SHELL, #then terminates SHELL before user can do anything system("./SHELL<