Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 536.4K On-Premises Infrastructure
- 138.3K Analytics Software
- 38.6K Application Development Software
- 5.8K Cloud Platform
- 109.5K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.3K Integration
- 41.6K Security Software
CEP server startup error

984875
Member Posts: 32
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
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
Answers
-
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 & -
#!/bin/shIt is working. Thank u so much.
cd $DOMAIN_HOME/ocep_domain/defaultserver
nohup sh $DOMAIN_HOME/ocep_domain/defaultserver/startwlevs.sh &> ocep1.out &
Edited by: 981872 on Apr 5, 2013 11:11 AM
This discussion has been closed.