exec command with pipes