05-02-2008
Connecting to remote unix server using java?
I need help writing java code that can connect to a remote unix server, and run a script on that server. I have scoured the internet, but I have been unable to find proper documentation on how this can be accomplished. Any help is appreciated thanks.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everybody,
My bash script is trying to connect to a remote database using the 'sqlplus' binary.For this i set(export) the variable TWO_TASK to the value of database name excluding the dot extension part.
Can anyone explain me what's the significance of this TWO_TASK variable while... (8 Replies)
Discussion started by: DILEEP410
8 Replies
2. UNIX for Advanced & Expert Users
Hello
i want to connect my solaris & Linux boxes to ntp server
i used the command
/usr/sbin/ntpdate -s -b -p 8 -u <NTP-IP>
and added the NTP server as server in /etc/ntp.conf
please help in completing the process and verifying it (1 Reply)
Discussion started by: learn82
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
My knowledge bucket of UNIX is almost empty. I have developed an application in EXCEL which can create XML files (Metadata) from Binaries.
These binaries are stored in UNIX server on regular intervals. Currently I am transferring all binaries(GBs of files) to WINDOWS using WINSCP and... (2 Replies)
Discussion started by: bobs
2 Replies
4. Ubuntu
Hi,
I have an interesting problem. I cannot connect to a personal server I set up. What's interesting is that I can connect to it from the LAN using its non-local IP address. However, I cannot seem to connect to it from anywhere else.
Here's how my server is set up:
My entire home has a... (8 Replies)
Discussion started by: Altay_H
8 Replies
5. Programming
Hi Friends,
Can some one please guide me on how to make a script run on a remote UNIX machine from a java application.
Or may if you can just tell me how do u ping to the remote UNIX machine using java code.
Been looking for the solution since 5-6 hrs, didn't got any where near :(
Thanks. (1 Reply)
Discussion started by: Sanjay MD
1 Replies
6. Shell Programming and Scripting
Hi Gurus,
I'm a unix newbie and I would like to connect to multiple unix servers from unix server using shell script i.e from server a to server b,c,d etc. I want to copy the files from unix server a to server b, c, d. I can access staright using ssh without the need to have password and user... (5 Replies)
Discussion started by: sexyTrojan
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I need some help regarding oracle with unix script
Actually i have a shell script and i want that it gets triggered through a oracle Db.I dont have any idea how is it done, even whether it is possible....pls help.....!!!! (3 Replies)
Discussion started by: fidelis
3 Replies
8. Shell Programming and Scripting
I am trying to connect to a Windows server say 10.1.1.10. This servers has a folder named RAJ in which there are multiple .zip files. All these zip files contain a text file called XYZ.txt. Now i have to merge the content of these XYZ.txt files from each of the .zip file and create a new text... (1 Reply)
Discussion started by: swapniljadav
1 Replies
9. Shell Programming and Scripting
I am connecting to remote server and try to check if files with timestamp as Today's day are on the directory. Below is my code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;
Today=`date +%Y%m%d`;
if ;then
echo "We... (1 Reply)
Discussion started by: digioleg54
1 Replies
10. Programming
Hey
i want to be able to write simple SSH client to be able to connect to SSH server and invoke remote SSH command
i found libssh and libssh2 and the old openSSh , what is the best and most supported library to choose from ?
i need it to be cross platform .
Thanks (0 Replies)
Discussion started by: umen
0 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)