pipe stdout of server