write sth to pipe