record stdin