I'm facing a problem today on Oracle Communications Calendar Server 8, I made a script to backup customers calendar, So when I manually execute the script everything is ok.
The problem occurs when i want to use this script with a crontab, it seems that the script does not execute the FOR loop inside.
I tried many things, absolute path, shebang (bash,sh) etc. and it's always the same.
Here is my script :
DATE=`date '+DATE: %Y%m%d%H%M%S' |cut -f2 -d ' '`;
mkdir -p $BACKUPDIR/$DATE
for i in `./davadmin account list -W | grep @`; do
./davadmin calcomponent export -W -a $i -x $BACKUPDIR/$DATE/$i.ics
if someone can see where i made a mistake.