10-14-2009
How to invoke remote java program from ssh
How can i invoke java program from MC1, when I connect remotely to execute can I set classpath etc.
____________ <-------------->____________________
|..................|<-------------->|...............................|
|..................|<-------------->|...............................|
|...UNIX (CSH)|<-------------->|...JAVA (JAR) ............|
|..................|<-------------->|...............................|
|...MC 1 .......|<-------------->|...MC 2......................|
|___________|<-------------->|____________________|
Any help is appriciated....
please give me a sample prog..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a simple script like this:
for file in $dodfiles; do
./rundod $file
done
$dodfiles is an array of file names selected
rundod is a script which invokes a java progrm which process a data file
all the processing message logged into a log file
in order to extract and analyze the... (1 Reply)
Discussion started by: liux99
1 Replies
2. Shell Programming and Scripting
Hey all,
My boss tasked me with the job to write a script which would invoke various java programs, the thing is I don't know much about shell scripting so would you experts help me out?
Here is the requirement
- 2 applications written in java: App_A and App_B
-... (0 Replies)
Discussion started by: mpang_
0 Replies
3. Shell Programming and Scripting
Hi all,
Can I invoke a perl script from Ksh script and pass parameters to the perl script.
Please do help me..
thanks
Maha (10 Replies)
Discussion started by: mahalakshmi
10 Replies
4. Shell Programming and Scripting
I am trying to search and remove files from a list of servers. I want to find every occurence of this file on each machine and then remove it. If I execute the find command on the remote machine I would like to be able to pipe the output to xargs and remove the file. Does anyone know hat would be... (1 Reply)
Discussion started by: sewood
1 Replies
5. Shell Programming and Scripting
Hi:
I need to invoke a perl script from a java applet program in UNIX operating system.. Can you please suggest me!!! (4 Replies)
Discussion started by: grajesh_955
4 Replies
6. Shell Programming and Scripting
Hi all
I'm creating a script that runs a few commands on some boxes and everything can be logged EXCEPT the java -version command, there doesn't seem to be any output...
Can anyone help explain why this does not work? Do I need to do something extra to append the output from the java... (3 Replies)
Discussion started by: Keepcase
3 Replies
7. UNIX for Advanced & Expert Users
hi
i want to invoke a unix script in a C program and also return some value from the script to the C program to use that value further.
Basically i am doing a Lookup operation in this unix script and returning the looked up data from a oracle database table..
please help me invoke as well... (1 Reply)
Discussion started by: somi2yoga
1 Replies
8. Shell Programming and Scripting
Hi Everybody,
I am running rsync through my java application.
The Java application will sync the files with remote machine. During our connection failure testing we noticed an issue running rsync through java program. The java application which is running at source side is not receiving any... (2 Replies)
Discussion started by: MVEERA
2 Replies
9. Programming
Hi I have been trying to connect a remote linux server in a java program through ssh. Can anyone tell me the proper library to include?
Thanks
Ananth (0 Replies)
Discussion started by: Ananthdoss
0 Replies
10. Shell Programming and Scripting
Hi,
I have create a Shell Script, with one function.
I want to call the script file in Java Program.
It working fine. but the problem is the function in the Shell Script is not executed.
Please suggest me,
Regards,
Nanthagopal A (2 Replies)
Discussion started by: nanthagopal
2 Replies
LEARN ABOUT DEBIAN
appclient
appclient(1M) Application Server Utility appclient(1M)
NAME
appclient - launches the Application Client Container and invokes the client application packaged in the application JAR file
SYNOPSIS
appclient -client client_application_jar [-mainclass client_application_main_classname|-name display_name] [-xml sun-acc.xml file] [-tex-
tauth] [-user username] [-password password]
Use the appclient command to launch the application client container and invoke a client application that is packaged in an application JAR
file. The application client jar file is psecified and created during deployment either by the deploytool or by using the asadmin deploy
command.
The application client container is a set of java classes, libraries and other files that are required to execute a first-tier application
client program on a Java Virtual Machine (JVM). The application client container communicates with the Application Server using RMI-IIOP.
The client.jar that is retrieved after deploying an application , should be passed with the -client option while running the appclient
utility. The -mainclass and -name options are optional for a single client application. For multiple client applications use either the
-classname option or the- name option.
-client required; the name and location for the client application jar file. The application client JAR file is specified
and created during deployment, either by the deploytool or by the asadmin deploy command.
-mainclass optional; the full classname of the main client application main() method that will be invoked by the Application
Client Container. Used for a single client application. By default, uses the class specified in the client jar. The
class name must be the full name. For example, com.sun.test.AppClient
-name optional; the display name for the client application. Used for multiple client applications. By default, the dis-
play name is specified in the client jar application-client.xml file which is identified by the display-name
attribute.
-xml optional if using the default domain and instance, otherwise it is required; identifies the name and location of
the client configuration XML file. If not specified, defaults to the value of $AS_ACC_CONFIG identified in
asenv.conf file.
-textauth optional; used to specify using text format authentication when authentication is needed.
Example 1: Using the appclient command
appclient -client appserv/bin/myclientapp.jar
-mainclass com.sun.test.TestAppClient -xml sun-acc.xml scott sample
Where: appserv/bin/myclientapp.jar is the full path for the client application .jar file, com.sun.text.TestAppClient is the full Java pack-
age name of the main client application, scott and sample are arguments to pass to the application, and sun-acc.xml is the name of the
client configuration XML file. If sun-acc.xml is not in the current directory, you must give the absolute path location; otherwise the rel-
ative path is used. The relative path is relative to the directory where the command is being executed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Unstable |
+-----------------------------+-----------------------------+
package-appclient(1M), asadmin(1M)
Sun Java System Application Server March 2004 appclient(1M)