#!/bin/sh echo "stdout 1" echo "stderr 1" 1>&2 echo "stdout 2" sleep 20 echo "stderr 2" 1>&2 echo "stdout 3" echo "stderr 3" 1>&2 sleep 1 echo "stdout 4" echo "stderr 4" 1>&2 echo "stdout 5" echo "stderr 5" 1>&2