readexec: Read commads from standard input and execute them