Executing shell commands with exec