accept one command line from the shell and execute it