I am getting an error from INed when I run the below script via cron.
It runs fine when executed on the command line, or when scheduled with
the "at" command.

The error reported is: "sh: INed.FATAL.LOG: not found."

Anyone have some ideas why I am getting this error only when the
script is executed from cron? Any help would be appreciated.

Jasen

<<<<<<<<<<<<<<<<<<<<<<< Begin script section
>>>>>>>>>>>>>>>>>>>>>>>
#!/bin/ksh

# Set the path variables for the location
# of the CBE logs on the remote servers

svr1=/some/path1
svr3=/some/path3
svr4=/some/path4


################################################
# Begin: Format the date minus one day #
# to match the date extension of the files #
################################################

# Set the current month day and year variables
month=`date +%m`
day=`date +%d`
year=`date +%Y`

# Add 0 to month. This is to
# make month an unpadded integer
month=`expr $month + 0`

# Subtract one from the current day
day=`expr $day - 1`

# If the day is 0 then determine the last
# day of the previous month
if [ $day -eq 0 ]; then

# Find the preivous month.
month=`expr $month - 1`

# If the month equals 0 then it is Dec 31 of
# the previous year
if [ $month -eq 0 ]; then
month=12
day=31
year=`expr $year - 1`

# If the month is not zero we need to find
# the last day of the month
else
case $month in
1|3|5|7|8|10|12) day=31;;
4|6|9|11) day=30;;
2)
if [ `expr $year % 4` -eq 0 ]; then
if [ `expr $year % 400` -eq 0 ]; then
day=29
elif [ `expr $year % 100` -eq 0 ]; then
day=28
else
day=29
fi
else
day=28
fi
;;
esac
fi
fi

# Format month, day, year to match the
# date extension of the logs

# If month is less than 10, pad with
# a leading zero
if [ $month -lt 10 ]
then
month=`echo 0$month`
fi

# If month is less than 10, pad with
# a leading zero
if [ $day -lt 10 ]
then
day=`echo 0$day`
fi

# Format year to the last two digits
year=`echo $year|cut -c 3-4`


# Set the date variable
date=`echo $month$day$year`

##############################################
# End: Format the date minus one day #
# to match the date extension of the #
# log files #
##############################################

# Build ftp input files and perform transfer of logs

cd /server1
echo "cd $svr1" >> ftpsvr1.in
echo "get file_$date.log" >> ftpsvr1.in
echo "get file2_$date.log" >> ftpsvr1.in
echo "quit" >> ftpsvr1.in
ftp -i host1 < ftpsvr1.in

cd /server3
echo "cd $svr3" >> ftpsvr3.in
echo "get file_$date.log" >> ftpsvr3.in
echo "get file2_$date.log" >> ftpsvr3.in
echo "quit" >> ftpsvr3.in
ftp -i host3 < ftpsvr3.in

cd /server4
echo "cd $svr4" >> ftpsvr4.in
echo "get file_$date.log" >> ftpsvr4.in
echo "get file2_$date.log" >> ftpsvr4.in
echo "quit" >> ftpsvr4.in
ftp -i host4 < ftpsvr4.in

rm /server1/ftpsvr1.in
rm /server3/ftpsvr3.in
rm /server4/ftpsvr4.in