troubleshooting Question

Oracle Communications Calendar Server 8 + davadmin script + Solaris 10

Avatar of spmt
spmt asked on
Unix OS
1 Comment1 Solution134 ViewsLast Modified:
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
spmt

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros