sonjaya wrote:
i have script for update automaticly here:
# cat /root/update_part1.sh
#!/bin/csh
cd /usr/src
setenv CVS_CLIENT_PORT -1
setenv CVSROOT [EMAIL PROTECTED]:/cvs
cvs -d $CVSROOT -q up -rOPENBSD_3_9 -Pd
date > /root/update_part1.log

when i try run that script get error such like this :
# sh /root/update_part1.sh
/root/update_part1.sh[3]: setenv: not found
/root/update_part1.sh[4]: setenv: not found
cvs update: CVSROOT "-q" must be an absolute pathname
cvs [update aborted]: Bad CVSROOT.

please tell me to fix it .

You are forcing ksh do execute a csh script. Either you rewrite it to ksh; so using "export" instead of setenv. Either you execute the script differently. Make it executable and run it without the "sh" in front


Cheers,

Dries

Reply via email to