I did have something at the bottom of the script to do what you suggested but I thought that I was doing something wrong. I had something like:
Code:
if [ "$blah" -eq "" ]
then
echo "1" > $HOME/.number
fi
The reason that I removed that simple clause was that I thought that I was doing something wrong with my original scripting. In theory, I should not have to write the additional code since my original code goes into a loop.
As for the
Just to be sure, you want me to add it like:
line 1: #!/bin/sh
line 2: set -xv
Finally, I use bourne shell for the portability of the scripts that run on it. It is true that Bash is the defacto shell, but for my previous stated reason and personal preference. If you can think of a better Bash script then I am alllll ears!

Thank you for your response.