Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9038343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:27:55+00:00 2026-06-16T09:27:55+00:00

I have written the following script for running a Java class: #!/bin/sh # Set

  • 0

I have written the following script for running a Java class:

#!/bin/sh

# Set this to the directory where the JDK is installed
JAVA_HOME=/opt/weblogic-9.2mp1/java1.5

# Set this to the path to the JAR file containing the JMS classes
# (for example, the path to the weblogic.jar file)
JMS_JAR=/opt/weblogic-9.2mp1/weblogic92/server/lib/weblogic.jar

# Specify the name of the <ServerNode> node in ASC
SERVER_NODE_NAME=TDCPublisher

# If you have custom save beans and load beans in your own JAR file,
# append your JAR file to this variable.
CLASSPATH=$JMS_JAR:$JAR_DIR/ClfyCore.jar:$JAR_DIR/awsi.jar:$JAR_DIR/acfglib.jar:$JAR_DIR/jaxen-1.1-beta-9.jar:$JAR_DIR/Amdocs
Aif.jar:$JAR_DIR/AmdocsProcMgrBase.jar:$JAR_DIR/AmdocsSvcCommon.jar:/apps/fasigw/test/fasigwApp/custom/FASIGWLink.jar
export CLASSPATH

# Set the path for accessing the JDK directory
PATH=$JAVA_HOME/bin:$PATH
export PATH

checkJDK()
{
  if [ ! -f $JAVA_HOME/bin/java ]; then
    echo "Error: $JAVA_HOME/bin/java not found."
    echo "Please edit this script so that the JAVA_HOME variable"
    echo "points to the root directory of your JDK installation."
    return 1
  fi
  return 0
}

checkClassPath()
{
  if [ ! -f $JAR_DIR/ClfyCore.jar ]; then
    echo "Error: $JAR_DIR/ClfyCore.jar not found."
    echo "Please edit this script so that the JAR_DIR variable"
    echo "points to the directory where ClfyCore.jar and the other"
    echo "ClarifyCRM JAR files are located."
  return 1
  fi
  return 0
}

main()
{
  checkJDK
      if [ $? != 0 ]; then
        return 1
      fi
  checkClassPath
      if [ $? != 0 ]; then
        return 1
      fi


$JAVA_HOME/bin/java -Djava.security.auth.login.config=/apps/fasigw/test/AmdocsCRM7.5/AmdocsCRMApplication/conf/auth.conf  -
cp ${CLASSPATH} com.clarify.daevtpub.ClarifyEventProcessor sa cleartest -pl ${SERVER_NODE_NAME} -ShowStatus -Debug -OutFile /
apps/fasigw/test/logs/DataChangeLog.log

  return 0
}

main $*

But the problem faced is – once I exit from the server and login again, though I can see the process is running using the command ps -ef,the class is not being executed. I need to manually start running the scrip again. How to avoid this and ensure that the script is continuously running in background? The script name is startEventProcessor and I execute the following command to run the script:

./startEventProcessor &
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:27:58+00:00Added an answer on June 16, 2026 at 9:27 am

    Use nohup:

    nohup ./startEventProcessor &
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running Cygwin on WinXP. I have written the following shell script to copy
I have written the following shell script: #!/bin/ksh main() { echo 'Checking if process
I have written a Perl script for the following bioinformatics question, but unfortunately there
i have written the following code class Program { static void Main(string[] args) {
I have written the following Utility class to get an instance of any class
I have written the following Perl script- use HTML::TreeBuilder; my $html = HTML::TreeBuilder->new_from_content(<<END_HTML); <span
I have written the following script to search for a motif(substring) in a protein
I am an absolute beginner in this field. I have written the following code
I have written the following simple script to parse reddit/r/documentaries require 'open-uri' require 'nokogiri'
I have a CGI script running on mongoose webserver written in C++ (independent of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.