on 10-15-2012 1:30 PM
Hi all,
Having an issue with syntax error in a profile after a consultant upgraded our production system.
I think it is most likely a missing " but I cannot find the syntax that is missing per line 67 in the error output.
Any help would be greatly appreciated.
.profile[67]: 0403-057 Syntax error: `"' is not matched.
+48 esac
+49 # SAP environment
+50 if [ -f $HOME/.sapenv_`hostname`.sh ]; then
+51 . $HOME/.sapenv_`hostname`.sh
+52 elif [ -f $HOME/.sapenv.sh ]; then
+53 . $HOME/.sapenv.sh
+54 fi
+55 # APO environment
+56 if [ -f $HOME/.apoenv_`hostname`.sh ]; then
+57 . $HOME/.apoenv_`hostname`.sh
+58 fi
+59 # LiveCache environment
+60 if [ -f $HOME/.lcenv_`hostname`.sh ]; then
+61 . $HOME/.lcenv_`hostname`.sh
+62 elif [ -f $HOME/.lcenv.sh ]; then
+63 . $HOME/.lcenv.sh
+64 fi
+65 # JAVA environment
+66 if [ -f $HOME/.j2eeenv_`hostname`.sh ]; then
+67 . $HOME/.j2eeenv_`hostname`.sh
+68 elif [ -f $HOME/.j2eeenv.sh ]; then
+69 . $HOME/.j2eeenv.sh
+70 fi
+71 # XI environment
+72 if [ -f $HOME/.xienv_`hostname`.sh ]; then
+73 . $HOME/.xienv_`hostname`.sh
+74 elif [ -f $HOME/.xienv.sh ]; then
+75 . $HOME/.xienv.sh
+76 fi
+77 # reset the -u option for HP
+78 case `uname` in
+79 HP*)
+80 if [ -o "nounset" ]; then
+81 set +u
+82 fi
+83 ;;
+84 esac
I also didn't find an error either in line 67. Close scrutiny of code lead to nothing. But sometimes error goes on retrying .
You can also analyse the work directory logs and put the same so that this can be looked upon from different perspective. Same issue happened with me, not exactly like this but after comparing the same file with another environment, i figured out that an "extra DOT" was present in it which was leading to a "Misleading" error.
Hope this helps,
Regards,
Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is anything wrong with below script?
+67 | . $HOME/.j2eeenv_`hostname`.sh |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't see an error either.
It might be an unprintable character.
Check with od command.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.