#!/bin/bash i=0 while [ true ] do while [ $i -lt 255 ] do i=$(($i+1)) ./atoi $i > /dev/ttyS3 ./atoi $i sleep 1 done done