05-08-2006
Start and stop of an application thru shell scripts.
Hi,
I just learnt the shell scripting and got working on that right now. I have one problem.
Here i am having a java application that needs to be start and stop using two shell scripts, i.e., starting the java application using one shell script and stopping the application using another shell script.
Please Could u provide the requested scripts. Here I need them VERY URGENTLY . Please once again request u send as early as possible.
Thanks & regards,
Sadha
10 More Discussions You Might Find Interesting
1. Linux
hi
i want to know the way by which i put any file somewhere and it get s started when the system restarts or bots
i mean whenever my system starts that application must also start
thanks (3 Replies)
Discussion started by: shukla_chanchal
3 Replies
2. Shell Programming and Scripting
Hi All,
I want to write a shell script which will start some application lets say "Windows media player".
Please let me know your inputs.
Thanks in advance,
Niyati (0 Replies)
Discussion started by: Niyati
0 Replies
3. Shell Programming and Scripting
#Define the Start/Stop/Status Scripts to include
SSS_SCRIPTS=( prog1 prog2 prog3 etc...... )
#Start the scripts
StartScripts()
{
for SSS in ${SSS_SCRIPTS}
do
./$SSS start
done
}
#Stop the Scripts
StopScripts()
{
for SSS in ${SSS_SCRIPTS}
do
./$SSS stop #<---I... (1 Reply)
Discussion started by: madasafish
1 Replies
4. Shell Programming and Scripting
Hi All,
I would like to develop a shell script for stop & start an application server (1-4) on Solaris box. Here are the user requirements for this task.
1. User will input the option which server they wish to stop.
2. Will clear cache files from specific location.
3. ... (1 Reply)
Discussion started by: venga
1 Replies
5. Shell Programming and Scripting
Dear All,
Pls find my scripts for Agent services strat & stop.
EAMSROOT=/opt/panaces
export EAMSROOT
cd $EAMSROOT
nohup ./OracleAgent.sh start &
nohup ./PFRAgent.sh start &
nohup ./PFR.sh start &
nohup ./SolarisOSAgent.sh start &
exit 0
EAMSROOT=/opt/panaces
export EAMSROOT
cd... (0 Replies)
Discussion started by: starnaresh
0 Replies
6. AIX
HI i need help from seniors on this issue, i need to know how to do this, i need to update 50+ server starting saturday. below is the ticket which i have with full description.
Currently MQ Series must be stopped before and started after any reboot. Not having the start/stop as part of... (2 Replies)
Discussion started by: gulamibrahim
2 Replies
7. UNIX for Dummies Questions & Answers
I did a search of these forums but couldnt find a suitable resolution.
I am attempting to script a stop and start of an application on AIX.
Such as:
However it has authentication where username and password prompts will appear after running the above command requiring input from a... (2 Replies)
Discussion started by: Soupy
2 Replies
8. Shell Programming and Scripting
Hello All,
I am completely new to shell scripting. I had to write a script that starts and stop the queue manager in Websphere MQ. We are on Linux 64-bit patform.
The script should stop the queue manager and all the processes related to websphere MQ. It should be a clean stop. Once the queue... (3 Replies)
Discussion started by: pady1224
3 Replies
9. Red Hat
Hi there,
I am wondering if I could add start/stop ksh scripts provided by 3rd party to cluster... I read that script must be ocf/lsb compliant, however, in AIX I can just set up two separate scripts for starting and stopping application. Can similar be done under RH Linux cluster?
Cheers,
c (1 Reply)
Discussion started by: cyjan
1 Replies
10. Shell Programming and Scripting
Hi,
I need to create a shell script for automated server patching, with the following scenario:
I have two Linux servers Primary and secondary.
Server patching should start on Primary 1st and then secondary.
1st check both servers are up and running.
Then stop primary and patching will... (1 Reply)
Discussion started by: rcroyal88
1 Replies
LEARN ABOUT SUSE
java-functions
java-functions(7) RPM Java packaging java-functions(7)
NAME
java-functions - Functions library for Java applications. Written for the JPackage Project <http://www.jpackage.org/>:
SYNOPSIS
set_jvm()
Set the java virtual machine. Use a JAVA_HOME if defined, or try to find it from java command
set_classpath()
Set the classpath - this functions requires a valid JAVA_HOME, JAVACMD, and JAVA_LIBDIR. JARs could be specified as an argument, or
via ADDITIONAL_JARS variable.
set_javacmd()
set the JAVACMD variable. Options should be passed via JAVACMD_OPTS variable.
set_flags()
set FLAGS variable. They could be specified as an argument, or via ADDITIONAL_FLAGS variable.
set_options()
set OPTIONS variable. They could be specified as an argument, or via ADDITIONAL_OPTIONS variable.
run()
run the application. It executed a following command. If VERBOSE is defined, then it prints the command to stdout.
exec $JAVACMD $FLAGS -classpath $CLASSPATH $OPTIONS $MAIN_CLASS "$@"
set_jvm_dirs()
set JVM-related directories (JVM_LIBDIR, JAVA_VERSION, JAVAVER_LIBDIR and JAVAVER_JNIDIR variables). Requires a correct JAVA_LIBDIR,
JAVA_HOME and JAVA_CMD.
link_jar_repository()
links a jar repository. Options could be found in build-jar-repository(1)
find_jar()
finds a specific extention (jar or directory). Requires a correct JAVA_LIBDIR, JAVAVER_LIBDIR and JVM_LIBDIR. Used by find-jar(1) com-
mand.
do_find_jar()
core routine used by find_jar()
check_java_env()
checks java environment - the JAVA_HOME, JAVACMD, JAVA_LIBDIR, JNI_LIBDIR variables.
DESCRIPTION
This is a library of generic shell functions which should be used on jpackage.org compatible distributions.
FILES
/use/share/java-utils/java-functions
shell script functions library for Java applications
/etc/java/java.conf
system-wide Java configuration file
~/.java/java.conf
user's Java configuration
SEE ALSO
Regular Manual Pages
build-jar-repository(1)
find-jar(1)
java.conf(5)
jpackage-utils(7)
AUTHORS
Guillaume Rousse <guillomovitch@sourceforge.net>
Ville Skytta <scop at jpackage.org>
David Walluck <david@jpackage.org>
Nicolas Mailhot <Nicolas.Mailhot at laPoste.net>
REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/)
jpackage-utils 1.7.5 February 2009 java-functions(7)