12-20-2000
My problem is as follows:
I have to write a korn shell script which will run mutiple java applications one after one. For example,
I will execute the java application A first, after it is done I will run application B.
My question is how do I do this? How does my korn shell script know that the application A is finished before running the application B.
B can not run until A is done.
Any help is grealy appreciated. Please provide some samples.
Thanks.
madhab99
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
ok i decided to go with Mandrake so i went to the site to download it and that took me to a mirror site. ok. so once i get there were can i find the install file(s) that i need? i only see a series of folder and files. the ones that say intall are instructions but i don't see the files themselves.... (3 Replies)
Discussion started by: justchillin
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
i'm dealing with a script and I have one question. If I have these:
#!/bin/bash
wget http://somesite/file.tar
tar xvf file.tar
exit
I need the line that contains the command tar to wait until file.tar is completly downloaded, but it doesn't and continues with the next line... (6 Replies)
Discussion started by: piltrafa
6 Replies
3. UNIX for Dummies Questions & Answers
Does anyone have detailed info on how to download the files. I go to www.freebsd.com and then i dont know what to do. I dont know why i dont know but im drawing a complete blank so is there anyone that can provide a step by step procedure for downloading/installing Linux? :confused: :confused: (3 Replies)
Discussion started by: Corrail
3 Replies
4. AIX
Guys, ive been looking about , but obviously not hard enough, Where do i get AIX 5.3 from ?
DO i need to purchase it or is it free to download on a single user license ?:confused:
Thanks (2 Replies)
Discussion started by: wmccull
2 Replies
5. UNIX for Dummies Questions & Answers
Probably a really easy one for you guru's out there...:rolleyes:
I need to make sure the reverse address lookup daemon in rarpd, is running. How do I do so? :confused:
Did a grep for the process but couldnt find it, also looked in all the normal places, /bin etc...
Cheers (1 Reply)
Discussion started by: JayC89
1 Replies
6. UNIX for Dummies Questions & Answers
When getting a listing of files using "ls -l", my output shows the permissions, #oflinks???, owner, group, size, month-day-time, and file.
In the example below, how would I know what year the file was last modified?
-rw-rw-r--, 28, root, root, 2048, Oct 28 15:10, somefile.txt (2 Replies)
Discussion started by: KGee
2 Replies
7. UNIX for Dummies Questions & Answers
hi,
when we do an "ls -l" on a directory, we get the listing of the contents of that dir...
what is the meaning of some numbers...example in ;
-rw-r--r-- 1 idr supp 0 Feb 18 19:41 dmesg
drwxrwsrwx 2 root sys 96 Dec 27 15:31 test09
drwxr-xr-x 3 bin ... (1 Reply)
Discussion started by: cromohawk
1 Replies
8. UNIX for Dummies Questions & Answers
All,
For some reason I can't figure out why I can't wildcard my find statement to check for anything with a wildcard after. I can before the -name but not after.
ie. find . -name *test works
but find . -name test* gives me the error: find: paths must precede expression
Usage: find ... (1 Reply)
Discussion started by: markdjones82
1 Replies
9. Shell Programming and Scripting
can anyone please suggest what is wrong with this command:
for i in ;
do
cat ~/Downloads/Project/p0s0n15.tcl>>~/Downloads/Project/p0s0n15_$i.tcl;
./setdest -n 15 -p 0 -M 5 -t 100 -x 500 -y 500 >>~/Downloads/Project/p0s0n15_$i.tcl;
cat... (3 Replies)
Discussion started by: amithkhandakar
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
Im trying to do move a file like this as mart of my script on Solaris
mv /path/to/file/file.txt ..
mv: cannot rename /path/to/file/file.txt to ../file.txt: Permission denied.
Im just trying to move it up one level using the following command on a bunch of directories:
find... (4 Replies)
Discussion started by: ideal2545
4 Replies
LEARN ABOUT CENTOS
java-wrappers
JAVA-WRAPPERS(7) Java wrappers JAVA-WRAPPERS(7)
NAME
java-wrappers - capacities shared by java wrapper scripts
DESCRIPTION
Most Java programs are not run directly, but through small shell scripts that take care of various things, such as finding a suitable java
environment and looking for libraries.
To ease the task of the maintainers, they rely on a library providing runtime detection, library detection and other features. This manual
page describes the common features of all those scripts, and to which point you can configure them. This is mainly done via environment
variables.
ENVIRONMENT VARIABLES
java-wrappers understands some environment variables:
JAVA_CMD
The java command that will be run. If this variable is set, it disables all lookup for a java runtime.
JAVA_BINDIR
Specifies a directory that will be looked for a java or a jdb executable (depending on the setting of JAVA_DEBUGGER). It has prece-
dence over JAVA_HOME but not over JAVA_CMD.
JAVA_HOME
A path to a java runtime. If this variable is set, all lookup for a java runtime is disabled, except that if no java executable is
found in the path, the command java is used.
JAVA_FLAVOR
A probably more easy-to-use version of the JAVA_HOME variable: instead of specifying the full path of the java runtime, you name it.
List of available flavors can be found in the file /usr/lib/java-wrappers/jvm-list.sh. See examples below.
JAVA_DEBUGGER
If this is set, the wrapper will try to pick up a java debugger rather than a java interpreter. This will fail if the jbd of the
runtime found is a stub.
JAVA_CLASSPATH
Additional classpath, will have priority over the one found by the wrapper.
JAVA_ARGS
Additional arguments to the java command. They will come before all other arguments.
FORCE_CLASSPATH
If this variable is set, it will be the only classpath. You'd better know what you are doing.
DEBUG_WRAPPER
This is probably the most important variable; if it set, the wrapper will print out useful information as it goes by its business,
such as which runtime it did find, and which command is run eventually.
JAVA_JARPATH
The path where the wrappers will go looking for jar archives. If not set, the wrapper will look into the default directory,
/usr/share/java. Warning : the wrapper will not look anywhere else than in JAVA_JARPATH. Setting it incorrectly will most probably
result in early crashes.
EXAMPLES
The examples all rely on rasterizer(1), from the package libbatik-java, but they really apply to all scripts that use java-wrappers.
Print out debugging information:
DEBUG_WRAPPER=1 rasterizer
Limit rasterizer's memory to 80 MB:
JAVA_ARGS=-Xmx80m rasterizer
Force rasterizer to run with kaffe(1):
JAVA_HOME=/usr/lib/kaffe rasterizer
The same, but using JAVA_BINDIR:
JAVA_BINDIR=/usr/lib/kaffe/bin rasterizer
Force rasterizer to run with openjdk:
JAVA_FLAVOR=openjdk rasterizer
Debug rasterizer with Sun's debugger, while printing debugging information from the wrapper:
DEBUG_WRAPPER=1 JAVA_CMD=/usr/lib/jvm/java-6-sun/bin/jdb rasterizer
BUGS
Care has been taken to make the wrappers bug-free. If that was not the case, please file a bug report against the java-wrappers package.
If you wish to submit any problem with a java executable relying on java-wrappers, please also submit the output of the command run with
DEBUG_WRAPPER=1. It will save one mail exchange and therefore potentially reduce the time it takes to fix the bug.
DEVELOPERS
There is currently no documentation about writing a wrapper script save the comments in /usr/lib/java-wrappers/java-wrappers.sh. If you
have to write one, we suggest you base yourself upon, for instance, the rasterizer wrapper script, or any other one (just pick up any
direct reverse dependency of java-wrappers and look for scripts).
SEE ALSO
java(1), jdb(1)
/usr/lib/java-wrappers/java-wrappers.sh
AUTHOR
java-wrappers and its documentation were written by Vincent Fourmond <fourmond@debian.org>
Version 0.1.16 2010-05-04 JAVA-WRAPPERS(7)