#!/bin/bash while true do echo "error" 1>&2; echo "stdout"; sleep 3; done;