Link to home
Create AccountLog in
Avatar of spmt
spmt

asked on

Oracle Communications Calendar Server 8 + davadmin script + Solaris 10

Hi,
 
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 :
 
#!/bin/sh
SUNCAL=/opt/sun/comms/calendar8/davserver/sbin
DATE=`date '+DATE: %Y%m%d%H%M%S' |cut -f2 -d ' '`;
BACKUPDIR=/backup/calendar
 
mkdir -p $BACKUPDIR/$DATE
cd $SUNCAL
 
for i in `./davadmin account list -W | grep @`; do
       ./davadmin calcomponent export -W -a $i -x $BACKUPDIR/$DATE/$i.ics
done
 
if someone can see where i made a mistake.
 
Thank you
ASKER CERTIFIED SOLUTION
Avatar of spmt
spmt

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer