#!/bin/bash while [ true ] do ./arith > arithtwitter2.txt dd if=arithtwitter2.txt of=arithtwitter.txt bs=200 count=1 sleep 30s done