hi gurus.
I have a little script that runs java from a certain directory. This script runs fine when run manually but when I try to schedule it, it fails to find the script.
I'm launching a java program from a shell script like this:
JAVA_OPTS=
CLASSPATH=
JMX_OPTS=
java $JAVA_OPTS -cp $CLASSPATH $JMX_OPTS
And launched program expects user to type another argument. It can't be specified in the list of arguments the program was launched with.
Hi All,
I want to pass array of argument from Java to a shell script.I can use process builder api and its exec() method to call the script,but the question is how to receive the parameter in the script.
Thanks in advance
Hi,
I have created a Shell Script and invoke through java using Process Builder
It's working fine, if (Shell script file ) in the same directory as java file.
By Problem:
How to run the Shell Script file( resides in external directory) using java. What configuration i have to do in java.
Please Suggest me,
Thank you and Regards,
Nanthagopal A
I'm trying to execute a script from within my java code. The execution of the script is over(it's pid is no more), but java is stuck on waitFor() method of the shell script process!. And yes, I'm reading output and error streams in 2 separate threads.
I am new to schell scripting . My objective is to write a ksh shell script that performs following tasks: -
1. Script reads all command line arguments (arguments are file names) and checks if it contains charachters "abc" in it.
2. If it contains "abc" it will execute a binary file xyz <command line arguments>
Note: -
1. arguments can be from 1 to n.
2.
This is another script for easily installing minecraft in Ubuntu.
I'm running Ubuntu 11 and I'm having some issues with grep.
I have a shell script (see below) which essentially checks if a certain Java program of mine is running, if not it runs it. That part works out great!
If my Java application throws any kind of exception however I would like to capture that information and email it to myself.
HI guys i am new to programing world, i have found one more wish with command line argument.
I have a shell script say one.sh ,
file_name=$1 //first argument file name(two.sh)
//connect to ftp and download $file_name
bash $file_name $2 $3 $4 //2nd 3rd and 4th arguments
say $file_name "actual name is two.sh, in two.sh
.....
.....
chmod 777 script.sh