read stdin/write stdout for -