cd /home/customer/test set dt = `date '+%y%m%d.%H%M'` # Check to see if new test_san.txt has been uploaded to test server if ( -e /home/customer/eram/apps_eram.txt ) then mv test_san.txt test_san.dat ( sudo pgp -e test_san.dat 0x57A59396 >& /dev/null ) >& /dev/null sudo chown sgov test_san.dat sudo chgrp users test_san.dat # Create ftp script to ftp files echo "binary" > /tmp/PutFile echo "cd puts" >> /tmp/PutFile echo "put test_san.dat.pgp" >> /tmp/PutFile # Pull the new data from serv and capture the output # DO NOT USE the "n" option with this ftp command ftp -iv ftp.test.com < /tmp/eramPutFile > /tmp/eram_response