Hello
I have a small script like that
Quote:
#!/bin/bash
i=$(/bin/find <path> -name "*.csv" -mmin -15 | /usr/bin/wc -l)
if test $i -eq 0
then
#do something about file not found
else
#do something about file found
fi
|
The <path> directory has some csv files that modified in last 15 mins. When I run this script from command line there is no issue, it finds the files and do something about file found
But this script could not find anything if it initiated from cron daemon. I checked many times files are always exists in my trials
I tried to change directory to <path> before find command but nothing changed. It's really smalll script but could not find out my error. I need to run this script from cron daemon
Could you help me about it ?
Ujio