The exec command runs an external program that you specify. It opens a new shell and runs your process. Upon completion it terminated the new shell.