/etc/init.d/nodemgr: line 96: syntax error near unexpected token `is'

I am trying to modify the unix script to auto start nodemanager on Oracle Linux server,however i am getting below error when ever i tried to start service nodemgr restart
here is script:
============
#!/bin/sh
# nodemgr Oracle Weblogic NodeManager service
# chkconfig: 345 85 15
# description: Oracle Weblogic NodeManager service
# The script needs to be saved as /etc/init.d/nodemgr and then issue chkconfig .add nodemgr as root
### BEGIN INIT INFO
# Provides: nodemgr
# Required-Start: $network $local_fs
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: Oracle Weblogic NodeManager service.
# Description: Starts and stops Oracle Weblogic NodeManager.
### END INIT INFO
. /etc/rc.d/init.d/functions
export WLS_HOME=/u01/Oracle/Middleware/wlserver_10.3
export MW_HOME=/u01/Oracle/Middleware
export JAVA_HOME=/u01/Oracle/Middleware/jdk160_24
export IDM_HOME=/u01/Oracle/Middleware/Oracle_IDM1
export OAM_HOME=/u01/Oracle/Middleware/Oracle_IDM2
export ORACLE_INSTANCE=/u01/Oracle/Middleware/Oracle_IDM1
export IAM_HOME=/u01/Oracle/Middleware/Oracle_IDM2
export DOMAIN_HOME=/u01/Oracle/Middleware/user_projects/domains
DAEMON_USER="oracle"
PROCESS_STRING="^.*/u01/Oracle/Middleware/.*weblogic.NodeManager.*"
source $MW_HOME/wlserver_10.3/server/bin/setWLSEnv.sh > /dev/null
export NodeManagerHome="$WLS_HOME/common/nodemanager"
NodeManagerLockFile="$NodeManagerHome/nodemanager.log.lck"
PROGRAM="$MW_HOME/wlserver_10.3/server/bin/startNodeManager.sh"
SERVICE_NAME=`/bin/basename $0`
LOCKFILE="/var/lock/subsys/$SERVICE_NAME"
RETVAL=0
start() {
OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
if [ ! -z "$OLDPID" ]; then
echo "$SERVICE_NAME is already running (pid $OLDPID) !"
exit
fi
echo -n $"Starting $SERVICE_NAME: "
/bin/su $DAEMON_USER -c "$PROGRAM &"
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $LOCKFILE
stop() {
echo -n $"Stopping $SERVICE_NAME: "
OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
if [ "$OLDPID" != "" ]; then
/bin/kill -TERM $OLDPID
else
/bin/echo "$SERVICE_NAME is stopped"
fi
echo
/bin/rm -f $NodeManagerLockFile
[ $RETVAL -eq 0 ] && rm -f $LOCKFILE
restart() {
stop
sleep 10
start
case "$1. in
start)
start
stop)
stop
restart|force-reload|reload)
restart
condrestart|try-restart)
[ -f $LOCKFILE ] && restart
status)
OLDPID=`/usr/bin/pgrep -f $PROCESS_STRING`
if [ "$OLDPID" != "" ]; then
/bin/echo "$SERVICE_NAME is running (pid: $OLDPID)!"
else
/bin/echo "$SERVICE_NAME is stopped"
fi
RETVAL=$?
echo $"Usage: $0 start"
exit 1
esac
exit $RETVAL
=================
here is error message
[root@oam init.d]# service nodemgr restart
/etc/init.d/nodemgr: line 96: syntax error near unexpected token `is'
/etc/init.d/nodemgr: line 96: `/bin/echo "$SERVICE_NAME is running ("pid: $OLDPID")"'

It is necessary to post code between code tags, otherwise it screws up. See the FAQ.
What sticks out right away is your wrong case statement case *"$1.* which should read *case "$1"*. You are also missing ;; to terminate your default case statement. You should also put $RETVAL between quotes and remove the /bin paths.

Similar Messages

  • Syntax error near unexpected token `)'

    I get that error sometimes when i try to complile. I was trying to use my Banshee1.5.1 PKGBUILD on my desktop (it works on my laptop) and i got that error again. But i don't think it's banshee cause i remember getting that same error when i wanted to complile Gnote.
    Banshee
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    ./configure: eval: line 2650: unexpected EOF while looking for matching `''
    ./configure: eval: line 2651: syntax error: unexpected end of file
    configure: WARNING: `missing' script is too old or missing
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking how to create a ustar tar archive... gnutar
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether NLS is requested... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for intltool >= 0.35.0... 0.41.0 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for XML::Parser... ok
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for a BSD-compatible install... /bin/install -c
    checking for library containing strerror... none required
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ISO C89... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking for ANSI C header files... (cached) yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.16... yes
    checking for GLIB - version >= 2.0.0... yes (version 2.22.2)
    checking for GDK_X11... yes
    checking for CLUTTER... yes
    checking for GST... yes
    checking for GST_PBUTILS... yes
    checking for BNPX_GTK... yes
    checking for X... libraries , headers
    checking for XVIDMODE... yes
    checking for MONO_MODULE... yes
    checking for gmcs... /usr/bin/gmcs
    checking for mono... /usr/bin/mono
    checking for Mono 2.0 GAC for System.Data.dll... found
    checking for Mono 2.0 GAC for System.Web.dll... found
    checking for Mono 2.0 GAC for System.Web.Services.dll... found
    checking for Mono 2.0 GAC for Mono.Cairo.dll... found
    checking for Mono 2.0 GAC for Mono.Posix.dll... found
    checking for Mono 2.0 GAC for ICSharpCode.SharpZipLib.dll... found
    checking for NDESK_DBUS_GLIB... yes
    checking for NDESK_DBUS... yes
    checking for MONO_ADDINS... yes
    checking for MONO_ADDINS_SETUP... yes
    checking for MONO_ADDINS_GUI... yes
    checking for NOTIFY_SHARP... yes
    checking for BOO... yes
    checking for monodocer... /usr/bin/monodocer
    checking for mdassembler... /usr/bin/mdassembler
    checking for NUNIT... no
    checking for NUNIT... yes
    checking for TAGLIB_SHARP... yes
    checking for GTKSHARP... yes
    checking for GLIBSHARP... yes
    checking for SQLITE... yes
    checking for GCONFSHARP... yes
    checking for GNOMESHARP... yes
    checking for gconftool-2... /usr/bin/gconftool-2
    Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
    Using $(sysconfdir)/gconf/schemas as install directory for schema files
    checking for LIBMTP... yes
    checking for struct LIBMTP_track_struct.modificationdate... no
    checking for IPODSHARP... yes
    checking for KARMASHARP... no
    checking for MONO_ZEROCONF... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for catalogs to be installed... ar be@latin bg br ca cs da de dz en_CA en_GB es eu fi fr gl gu he hu it ja ko ky lt lv mk nb nl oc pa pl pt pt_BR ru sl sr sr@latin sv th uk vi zh_CN zh_HK zh_TW
    checking for sed... /bin/sed
    configure: creating ./config.status
    ./config.status: line 400: syntax error near unexpected token `)'
    ./config.status: line 400: ` *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;'
    Gnote
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    ./configure: eval: line 2411: unexpected EOF while looking for matching `''
    ./configure: eval: line 2412: syntax error: unexpected end of file
    configure: WARNING: `missing' script is too old or missing
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether ln -s works... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for dlfcn.h... yes
    checking whether we are using the GNU C++ compiler... (cached) yes
    checking whether g++ accepts -g... (cached) yes
    checking dependency style of g++... (cached) gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC -DPIC
    checking if g++ PIC flag -fPIC -DPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking if g++ supports -c -o file.o... (cached) yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking for LIBGLIBMM... yes
    checking for GTK... yes
    checking for LIBGTKMM... yes
    checking for LIBXML... yes
    checking for LIBXSLT... yes
    checking for GCONF... yes
    checking for PCRE... yes
    checking uuid/uuid.h usability... yes
    checking uuid/uuid.h presence... yes
    checking for uuid/uuid.h... yes
    checking for uuid_unparse_lower in -luuid... yes
    checking for LIBPANELAPPLETMM... yes
    checking for GTKSPELL... yes
    checking for Boost headers version >= 103400... yes
    checking for Boost's header version... 1_39
    checking boost/bind.hpp usability... yes
    checking boost/bind.hpp presence... yes
    checking for boost/bind.hpp... yes
    checking boost/cast.hpp usability... yes
    checking boost/cast.hpp presence... yes
    checking for boost/cast.hpp... yes
    checking boost/lexical_cast.hpp usability... yes
    checking boost/lexical_cast.hpp presence... yes
    checking for boost/lexical_cast.hpp... yes
    checking for the toolset name used by Boost for g++... gcc44 -gcc
    checking boost/system/error_code.hpp usability... yes
    checking boost/system/error_code.hpp presence... yes
    checking for boost/system/error_code.hpp... yes
    checking for the Boost system library... yes
    checking boost/filesystem/path.hpp usability... yes
    checking boost/filesystem/path.hpp presence... yes
    checking for boost/filesystem/path.hpp... yes
    checking for the Boost filesystem library... yes
    checking boost/format.hpp usability... yes
    checking boost/format.hpp presence... yes
    checking for boost/format.hpp... yes
    checking boost/test/unit_test.hpp usability... yes
    checking boost/test/unit_test.hpp presence... yes
    checking for boost/test/unit_test.hpp... yes
    checking for the Boost unit_test_framework library... yes
    checking tr1/memory usability... yes
    checking tr1/memory presence... yes
    checking for tr1/memory... yes
    checking whether gcc understands -Wall... yes
    checking whether gcc understands -Wextra... yes
    checking whether gcc understands -Wsign-compare... yes
    checking whether gcc understands -Wpointer-arith... yes
    checking whether gcc understands -Wchar-subscripts... yes
    checking whether gcc understands -Wwrite-strings... yes
    checking whether gcc understands -Wunused... yes
    checking whether gcc understands -Wpointer-arith... yes
    checking whether gcc understands -Wshadow... yes
    checking whether gcc understands -fshow-column... yes
    checking whether NLS is requested... yes
    checking for intltool >= 0.35.0... 0.41.0 found
    checking for intltool-update... /usr/bin/intltool-update
    checking for intltool-merge... /usr/bin/intltool-merge
    checking for intltool-extract... /usr/bin/intltool-extract
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for perl... /usr/bin/perl
    checking for perl >= 5.8.1... 5.10.1
    checking for XML::Parser... ok
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking for LC_MESSAGES... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking for ngettext in libc... yes
    checking for dgettext in libc... yes
    checking for bind_textdomain_codeset... yes
    checking for msgfmt... (cached) /usr/bin/msgfmt
    checking for dcgettext... yes
    checking if msgfmt accepts -c... yes
    checking for gmsgfmt... (cached) /usr/bin/msgfmt
    checking for xgettext... (cached) /usr/bin/xgettext
    checking for gconftool-2... /usr/bin/gconftool-2
    Using config source xml:merged:/etc/gconf/gconf.xml.defaults for schema installation
    Using $(sysconfdir)/gconf/schemas as install directory for schema files
    checking for sed... /bin/sed
    configure: creating ./config.status
    ./config.status: line 400: syntax error near unexpected token `)'
    ./config.status: line 400: ` *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;'
    Both get exactly the same error.

    I have tried downgrading bash and gcc, but no luck. I have also looked into some config files and stuff but i can't find anything. Maybe it's time for a reinstall.

  • Forms 10g compile : syntax error near unexpected token `in

    Hi,
    I am writing a code to compile FORMS 10g(10.1.2.0.2) in HP_UX one by one.
    this is the code---frm10g.sh
    *#!/bin/ksh*
    *# . ~oracle/forms/server/default.env*
    *# . sid icache*
    TERM=vt220
    *if [ $# != 2 ]*
    then
    echo Usage : $0 module_name module_type
    exit 1
    fi
    case $2 in
    FORM|form|F|f) ext1='fmb' ;ext='fmx' ; modtyp='FORM' ;;
    PLL|pll|p|lib|LIB) ext1='pll' ;ext='plx' ; modtyp='LIBRARY' ;;
    MENU|menu|M|m) ext1='mmb' ;ext='mmx' ; modtyp='MENU' ;;
    **) echo invalid parameter ; exit 1 ;*
    esac
    echo Generating $1.$ext
    frmcmp module=$1.$ext1 userid=abc/abc@abc output_file=../$1.$ext module_type=$modtyp batch=NO compile_all=special > ./log/$1.log
    when I try to excute above file frm10g.sh in command line i get following error. Please let me know how to fix it.
    [abc]u01/app/oracle/product/10.1.2/forms/forms/Forms10g:. frm10g.sh INV FORM
    : command not found
    : command not found
    'bash: ./frm10g.sh: line 13: syntax error near unexpected token `in
    'bash: ./frm10g.sh: line 13: `case $2 in
    I really aapreciate your help.
    Thanks
    Sandy

    Sandy,
    I must apologize. The Compile.sh does not come with the Oracle Dev Suite installation. However, the following is the contents of the compile.sh script we use. This script compiles a single form.
    #!/usr/bin/ksh
    ORACLE_HOME=/d01/oracle/ias1012;export ORACLE_HOME
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/lib32:$ORACLE_HOME/ctx/lib:/usr/java1.2/jre/lib/sparc:$ORACLE_HOME/jdk/jre/lib/sparc:/usr/lib:/usr/dt/lib:/usr/openwin/lib:/usr/ucblib:usr/ccs/lib; export LD_LIBRARY_PATH
    MODULE_NAME=`echo $1|cut -d. -f1`
    MODULE_SUFFIX=`echo $1|cut -d. -f2`
    MODULE_MESG=${2:-"Compiling $1"}
    OK_MESG=${3:-"  Compiled sucessfully"}
    . .setpass_cir
    APP_PW='cir/'`eimauth -g cir`'@database'
    echo "************************************************************************* "
    echo ${MODULE_MESG}
    frmcmp.sh module=/d01/oracle/forms/${MODULE_NAME}.fmb userid=${APP_PW} compile_all=yes batch=yes
    RC=$?
    case "$RC" in
      0)
        echo ${OK_MESG}
        echo "Compile errors, return code: $RC "
        cat ${MODULE_NAME}.err
        echo "Compile errors in $1, press [enter] to continue.\c"
        read x
    esac
    eval exit $RCYou should be able to modify this to suit your needs.
    Craig...

  • Getting "Unable to run script at line 1: syntax error"  error?

    Hi,
    I want to run a script using the AEGP_ExecuteScript() function. but I got an error "Unable to run script at line 1: syntax error". what could be the rea son for this? shall I inlcude anything extra info in my project?
    Below is the code ...
    char scriptPath[] = "F:\\Documents and Settings\\akshays\\Desktop \\Active Shutter.jsx";
    A_Boolean platform_encodingB = 'B';
    AEGP_MemHandle outResultPH0;
    AEGP_MemHandle outErrorStringPH0;
    utilitySuite5->AEGP_ExecuteScript( pluginID, scriptPath, platform_encodingB, &outResultPH0, &outErrorStringPH0 );
    please help me.
    Thanks
    Manjunath

    This can be debug by using "ExtendSCript Toolkit 2 and Debugger".
    Just open Edit -> Prefernces -> General -> ****
    There enable checkbox "Enable javascript debugger".
    if you encountering an error while launching the script, then AE will automatically open your script in "ExtendSCript" toolkit with an error at the bottom line. You can see the "DataBrowsing" panel right side for available functions., objects and so on.
    then you can get to know what is the error and the reason for this error at least.

  • Syntax error near the ['on']

    Can anyone please advise on how to resolve this issue, I created Dim load file but whenever I try loading the Dim it returns - syntax error near the ['on']
    thanks

    I don't see the issue
    Delimiter was set as comma, first line was ignored and it all loaded fine.
    Cheers
    John

  • Syntax Error near Database name

    Hi,
    When i tried to take export from automated process (Not Manually) from a application its giving error like :
    ERROR - 1242021 - (1) Syntax error near ['Currency'].
    The type of database is Currency.
    But if i take the export Manually form Essbase application Manager, i can sucessfully perform the activity.
    Now ......
    1.Type of database and Name (Currency) Can be Equal ??????
    2.The Automated Process can't be wrong because export of different DB is sucessful with this Automated Process.
    Please suggest.
    Thanks,
    Kaash

    Hi Kaash
    I had a similar issue in when I used a db name of 'Volume', I also wonder whether there are certain restricted words that you shouldn't use due to conflicts with MaxL / Esscmd?
    I overcame it by re-naming to 'Volumes'.
    Hope this helps, or at least reassures you that you're not going mad!
    Stuart

  • ERROR - 1242021 - (1) Syntax error near ['security_file']

    When invoking the command "export security_file to data_file essbase_security_file.txt;" I get the error message "ERROR - 1242021 - (1) Syntax error near \['security_file'\]". I get the same message from EAS when right clicking and exporting from the console. The end game here is that I want to dump the Essbase.sec file into a readable format.
    Any help appreciated.
    Thanks
    -Kevin
    Edited by: user5439694 on Dec 31, 2009 11:58 AM
    Edited by: user5439694 on Dec 31, 2009 11:59 AM

    IT is easier to just go into EAS and select the Essbase server, then right click on Security and select export security file. Enter the file name you want it to go to. In Version 11 it puts the file in Arborpath\Products\Essbase\EssbaseServer\Bin
    I also ran the following MaxL export security_file to data_file 'e:\datafiles\security_test.txt';
    and it ran fine (It put the file onto the Essbase server in the specified directory)

  • MySQl syntax error near " at line 1 and Unknown column. Please help

    Hello again,
    I have another question. Just to refresh I am using DWCS3 with MAMP on my MBP Leopard 10.5.6.
    I have created a form with the form wizard and a Transitional <!DOCTYPE>
    I have added the php validation code pages 481 to 485 The Essential Guide to Dreamweaver.
    I saved it and uploaded it to the testing server clicked the "insert form" button,and  I got;
    You have an error in your SQL syntax; Check the manual that corresponds to your MySQL server version for the right syntax to use near " at line 1
    The MySQL version I am using is 5.0.37. I have gone over and over the code and I can't find what is wrong with it.
    Also for the username column, I am now getting a message;
    'Unknown column'  'ella1' in 'where clause'
    I have researched it on the web and possible answers are that my columns are misspelled, the column doesn't exist or username is not in the query.
    I have checked all of these and I really can't see the problem, but there obviously is one.
    Please can someone help.
    Thanks again.
    P.S. I have attached the page in a .zip file if anyone wouldn't mind having a look.

    No, I'm talking about the dot before.
    Change this
    .$row_detailsRS[$details_prodID] . "";
    to this
    . $row_detailsRS[$details_prodID] . "";
    in both places.

  • Predictive Analysis error message "[Sybase][ODBC Drivers][Sybase IQ]Syntax error near ',' on line 1

    Hello,
    I have a custom R component with a function that reads data from a hard configured file.
    No database operations but I get this ODBC error that, I suppose, originates from PA talking to the IQ server it runs.
    How can I find more about what PA tries to do, especially can I get a trace of the SQL it tries to execute?
    Best regards,
    Andreas

    Hi Andreas,
    You could start by looking at the logfiles that SAP PA produces.
    From your Windows Explorer go to the directory: %temp%\sapvi\logs
    Here you will find the logfiles that PA creates - as an example:
    If this information is not covering your requirements turn to the SAP PA manuel on page 11, section 5.4 configuring logs where it is described how to do a custom tracing.
    Good luck.
    Best regards,
    Kurt Holst

  • StartupItem with syntax error (sh script)

    I'm comfy on the cli but still green with scripting it. I've followed the Apple tut on making a StartupItem, but I am getting simple (I hope) sh syntax errors when I run it. The three *Service functions are required, as they're called by the RunService function (from the sourced rc.common script) ... all per the Apple tutorial.
    In any case, the error I get is:
    line 7: syntax error near unexpected token `}'
    /Library/StartupItems/blah/blah: line 7: `}'
    The complaint is about the bracing earlier in execution than the 'tricky' stuff. I hope that suggests the problem is here and not in my Boot.bash script. I'll post that too if, as I'm noticing with scripting, the complaints about eofs and bracing and such are not where the real problem lies. I'm a bash person though so, especially if this is just an sh syntax misuse, feel free to give me what for.
    Any thoughts, fixes, or straight advice appreciated,
    Joel
    #!/bin/sh
    . /etc/rc.common
    StopService() {
    # nothing to kill
    RestartService() {
    StopService
    StartService
    StartService() {
    /bin/bash /Library/Management/Boot.bash
    RunService "$1"

    Hi Joel,
       I've actually read a scripting guide that recommends defining functions with the "function" keyword and the norm is to put a space before and after the "()". However, your syntax is valid. In fact I see no errors at all; the script should work.
       Thus, the problem is most likely something invisible. It's time to investigate the text editor you used to create the script. You should open the script in a UNIX text editor, like vim, and look for hidden characters or Mac line endings. An even better solution might be to get the free text editor TextWrangler, (or BBEdit if you have it) open the file and set it to show invisible characters. It will also tell you what kind of line endings are used in the file. You might also post a long listing of the StartupItem script.
    Gary
    ~~~~
       He's just a politician trying to save both his faces...

  • Makepkg syntax error - caused by POSIXLY_CORRECT

    I'm new to arch linux and after installation of arch and the first steps with
    makepkg I was confronted with following script error:
    /usr/bin/makepkg: line 1545: syntax error near unexpected token `<'
    /usr/bin/makepkg: line 1545: ` done < <(find . -type f -perm -u+w
    -print0 2>/dev/null)'
    After a long time checking the script I found the problem in my .zshenv where
    the environment variable POSIXLY_CORRECT=1 was exported. After unsetting this,
    makepkg worked well.
    I've used this to force myself to write scripts that are portable between
    different systems, and I'd like to keep this variable set also on my new arch
    system. Wouldn't it be a good decision to change the makepkg script to also
    work if POSIXLY_CORRECT is set? If the issue is known and POSIX does not
    belong to the Arch Way, I'll accept that and will unset POSIXLY_CORRECT before
    building a package.

    I think you should ask this on the ML or open a feture request on the bugtracker.

  • Illegal register: "icc" : syntax error with  Sun C 5.8 compiler

    I wanted to compile my C file with compiler option "cc -c -Xc -mt -fast -xarch=amd64" on Solaris 10 amd64 machine but it failed with following error -
    Assembler: abc.c
    "/tmp/GAAOBain6", line 819 : Illegal register: "icc"
    "/tmp/GAAOBain6", line 819 : Syntax error
    Near line: " orq %icc,%r8 ;/ line : 210"
    "/tmp/GAAOBain6", line 852 : Illegal register: "icc"
    "/tmp/GAAOBain6", line 852 : Syntax error
    Near line: " movzwq %icc,%r9 ;/ line : 215"
    cc: ube failed for abc.c
    *** Error code 2
    I am using following sun C compiler -
    /SS11/SUNWspro/bin/cc -V
    cc: Sun C 5.8 Patch 121016-02 2006/03/31
    Do anybody has idea about this issue?
    Thanks
    Sgupta

    Thanks Boris for your help.
    My abc.c file is following -
    struct struct_1 {
    unsigned type:8;
    unsigned level:5;
    unsigned seen:1;
    unsigned pad:2;
    unsigned length:16;
    void sample (unsigned char type)
    struct struct_1 *q;
    /*** Allocate and assign pBody here **/
    q->type = type;
    q->length = type;
    ==========================================
    compiling this file with following option gives the error in Sol-10 amd64 -
    /SS11/SUNWspro/bin/cc -c -Xc -mt -fast -xarch=amd64 abc.c
    But compiling without "-fast" options work fine.
    Thanks
    Sgupta

  • Apache2 Syntax Errors

    Hi There, i'm having an Apache2 startup problem. When i try to start Apache2 it gives out the following errors:
    # /etc/init.d/apache2 start
    Starting httpd2 (worker) httpd2-worker:
    Syntax error on line 177 of /etc/apache2/httpd.conf:
    Syntax error on line 99 of /etc/apache2/default-server.conf:
    Syntax error on line 2 of /etc/apache2/conf.d/oes_http.conf:
    Syntax error on line 9 of /etc/opt/novell/httpd/conf.d/iprint_g.conf:
    Cannot load /opt/novell/iprint/httpd/lib/mod_ipp.so: into server /etc/opt/novell/iprint/httpd/lib/mod_ipp.so: wrong ELF class: ELFCLASS32
    Please help, let me know if you need any other info.
    Thankx

    Originally Posted by smflood
    On 12/05/2010 15:36, thsundel wrote:
    > I'm not sure but somehow it looks like you have installed 32 bit OES
    > iPrint on your SLES 64 bit. Can this be true?
    Sorry to jump in here but I'm guessing this is actually an OES server
    rather than plain SLES?
    Please post the output from 'cat /etc/*release'.
    Simon
    Novell Knowledge Partner (NKP)
    Do you work with Novell technologies at a university, college or school?
    If so, your campus could benefit from joining the Novell Technology
    Transfer Partners (TTP) group. See Novell TTP Organization for more details.
    Hi Simon
    Thanks for filling in.
    The output of 'cat /etc/*release'
    SUSE Linux Enterprise Server 10 (x86_64)
    VERSION = 10
    PATCHLEVEL = 1
    LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64"
    Novell Open Enterprise Server 2
    VERSION = 2
    BUILD = FCS

  • [SOLVED] Generated grub file contains syntax error

    I haven't touched any of /etc/default/grub and /etc/grub.d/*
    Here's generated file containing syntax errors:
    http://pastebin.kde.org/p39g742cg/kn73gf
    Last edited by dlh (2013-12-09 18:59:57)

    Well the errors show up when:
    grub-mkconfig -o /boot/grub/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-linux-ck
    Found initrd image: /boot/initramfs-linux-ck.img
    Found Windows 8 (loader) on /dev/sda1
    error: out of memory.
    error: syntax error.
    error: Incorrect command.
    error: syntax error.
    Syntax error at line 159
    Syntax errors are detected in generated GRUB config file.
    Ensure that there are no errors in /etc/default/grub
    and /etc/grub.d/* files or please file a bug report with
    /boot/grub/grub.cfg.new file attached.done

  • Preloader Syntax Error

    Need help with ActionScript 2.0 and Player 9. I am trying to
    update my flash pages with Player 9.0 and discovered an
    incompatibility with the preloader code. I keep getting this
    message:
    **Error** Symbol=preloader, layer=background, frame=1, Line
    6: Syntax error.
    _parent.bytes = int(isloaded/1000) add " KB of " add
    int(total/1500) add " KB";
    **Error** Symbol=preloader, layer=background, frame=1, Line
    7: Syntax error.
    _parent.percent = int(p) add "% LOADED";
    Total ActionScript Errors: 2, Reported Errors: 2
    Any help would be greatly appreciated. Thanks!

    With Flash CS3 the "add" operator was removed -- it had been
    depriciated sinc Flash 6 (I think).
    So use "+" instead. Like this:
    _parent.bytes=int(isloaded/1000) + " KB of "+int(total/1500)
    +" KB."

Maybe you are looking for

  • Family share not appearing on 2 gen apple tv

    my sister has a 2 gen apple tv and the family share content does not appear. how do i fix that.

  • Editing Text in Dreamweaver Display View

    I have just started using Dreamweaver CS4. In older versions of Dreamweaver, I'm used to seeing text in Display view and being able to edit the text directly in Display view, rather than having to edit text in Code view. But when I'm trying to edit t

  • I need to find out my balance or my iTunes account. How do I find out on my iPhone 4s?

    How do I find out on my iPhone 4s? I wanna buy a 10$ iTunes card but need to know if my negative balance is more or less than 10$

  • JPEG Vs PNG

    hi there, here is a question i have but first i want to apologise for my writting im still learning english ok here it is, hoping that some one who can backup his/her answer read this if every time i use png results in small file size WHY do i want t

  • OSS Note deimplemented and included in Support Package

    Hi, We have deimplemented note in version 2, because version 3 was not possible to be implemented in SNOTE. Now it is deimplemented at all, and when I try to implement latest version of the note, I get the message SAP Note already implemented by Supp