Ok I fixed it I think I had to change the Tar line to reflect the new script
tar -xvf gaindownacid.tgz
From
tar -xvf gaindown.tgz
Then the script run ok
Randy