I have a scenario wherein the file will arrive at any time between 11:30 and 11:40. I can schedule a script to run to start at 11:30 to check if the file has arrived. Here is what I have with me.

```
i=0
while [ i -eq 0 ]
do
    if [ ! -f $File_Check_Dir/$FILE_NAME ] ; then
        echo " \n File has arrived at `date +'%d-%m-%Y %H:%M:%S'****" | tee -a ${LOGFILE}
        i=1
    fi
done

```

I can make the script run in background. But I would need to check the systime and send an alert if the file has not arrived till 11:40 ET. I tried with systime functions but cant exactly get what I wanted.