Exec wraps execution of an external command. If no arguments are given,
they are extracted from the command, by splitting it on spaces.
If the command fails, its output is printed and the command stops.
If the command succeeds, its output is returned as a string.