coopermarsh
MIS
#!/bin/sh
#Script to find if the DBB file has been ftp'd from ISLN518
touch -t `date +%m%d0000` /tmp/$$
#count the number of dbb files found in the /Server1/dbbfile1 and dbbfile2 directories
DBB_FILE=`find /Server1/dbbfile1/ /Server1/dbbfile2/ -type f -newer /tmp/$$ |wc -l`
if [ "${DBB_FILE}" -le 0 ] ; then
DBB_FILE="CHECK FTP TRANSFER, No dbbfile found."
echo ${DBB_FILE}
else
if [ "${DBB_FILE}" -ge 1] ; then
DBB_FILE=`find /Server1/dbbfile1/ /Server1/dbbfile2/ -type f -newer /tmp/$$`
echo "Found DBB file: ${DBB_FILE}
fi
fi
rm /tmp/$$
This script errors with
syntax error at line 18: `end of file' unexpected
#Script to find if the DBB file has been ftp'd from ISLN518
touch -t `date +%m%d0000` /tmp/$$
#count the number of dbb files found in the /Server1/dbbfile1 and dbbfile2 directories
DBB_FILE=`find /Server1/dbbfile1/ /Server1/dbbfile2/ -type f -newer /tmp/$$ |wc -l`
if [ "${DBB_FILE}" -le 0 ] ; then
DBB_FILE="CHECK FTP TRANSFER, No dbbfile found."
echo ${DBB_FILE}
else
if [ "${DBB_FILE}" -ge 1] ; then
DBB_FILE=`find /Server1/dbbfile1/ /Server1/dbbfile2/ -type f -newer /tmp/$$`
echo "Found DBB file: ${DBB_FILE}
fi
fi
rm /tmp/$$
This script errors with
syntax error at line 18: `end of file' unexpected