#!/bin/sh n=0 while true; do n=`expr $n + 1` echo ===== $n ===== labsw ch1=0 ch2=0 sleep 5 labsw ch1=1 ch2=1 sleep 2 done