This discussion is archived
2 Replies Latest reply: Apr 5, 2013 11:12 AM by 984875 RSS

CEP server startup error

984875 Newbie
Currently Being Moderated
Dear Legends,
I'm able to start CEP server by just executing ./startwlevs.sh via terminal. But when i start the server through shell script, i'm getting the following error
"/u01/user_projects/domains/ocep_domain/defaultserver/startwlevs.sh: line 5: ./setDomainEnv.sh: No such file or directory"

My shell script:
#!/bin/sh
nohup sh $DOMAIN_HOME/ocep_domain/defaultserver/startwlevs.sh &> ocep1.out &

Pls help to resolve this error.

Thanks in Advance
  • 1. Re: CEP server startup error
    DaveRorke Newbie
    Currently Being Moderated
    The startwlevs.sh script calls (sources) the ./setDomainEnv.sh file using a relative path that expects setDomainEnv.sh to be in the current directory. So the startwlevs.sh script itself needs to be run with a current working directory of /u01/user_projects/domains/ocep_domain/defaultserver or it won't be able to find the setDomainEnv.sh script. If you're launching your higher level script from some other directory, the current working directory will typically be set to whatever directory your terminal shell is currently in.

    You can try explicitly changing directory in your script, e.g.

    #!/bin/sh
    cd $DOMAIN_HOME/ocep_domain/defaultserver
    nohup sh $DOMAIN_HOME/ocep_domain/defaultserver/startwlevs.sh &> ocep1.out &
  • 2. Re: CEP server startup error
    984875 Newbie
    Currently Being Moderated
    #!/bin/sh
    cd $DOMAIN_HOME/ocep_domain/defaultserver
    nohup sh $DOMAIN_HOME/ocep_domain/defaultserver/startwlevs.sh &> ocep1.out &
    It is working. Thank u so much.

    Edited by: 981872 on Apr 5, 2013 11:11 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points