Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Java program calling a UNIX command Post 10437 by QUartz Ite on Wednesday 14th of November 2001 09:31:19 AM
Old 11-14-2001
Question Java program calling a UNIX command

I was wondering if it was possible to call a unix command directly from a Java program during run-time. This command could very very basic e.g. "ps -ef" returned as a string, all I need is a starting place so if anyone has any suggestion or examples I would be very grateful
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

executing the su command from a java program.

Say in unix (AIX) m/c, I am logged in with s1 user and want to start process p1 with user credentials of s2. I can do manually in this way: #su - s2 #enter password for s2> somePassword $ p1 But all this I have to do through a java program. How to pass the password through program. One... (1 Reply)
Discussion started by: shailendrat
1 Replies

2. UNIX for Dummies Questions & Answers

Connection problem with gui java program to postgreaql database using unix

Having problem in connecting my gui java program to postgreaql database. I first used setenv classpath /home/share/postgresql/java/postgresql.jar:proj1, where proj1 is my folder conatining all java and class file, to set classpath. Then javac *.java. Then java proj1.Login. It gives me... (2 Replies)
Discussion started by: uci
2 Replies

3. UNIX for Dummies Questions & Answers

using a variable from java program in unix

Hi, I need to execute a java program in a shell script.I then need to assign the value being returned by the program into a unix variable.Is there any way i can access the value in a variable in java program? As in if my java code has a variable, . . . . valueA =x.getValue() ..... can... (1 Reply)
Discussion started by: inquisitive101
1 Replies

4. Shell Programming and Scripting

Calling Java Method from UNIX using shell script

Hi All, I need to call a java method from a shell script. I know we can use the command java ClassName to call the main method in it. But I need to call another method that is there in the class and pass an email to it. Can I use java ClassName.MethodName(email) Any help will be... (4 Replies)
Discussion started by: RahulK
4 Replies

5. Homework & Coursework Questions

Calling compiled C program with Perl program

Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies

6. Shell Programming and Scripting

How to pass the environment name while calling java program from unix script?

Hi, I'm trying to test one unix shell script in dev environment. But I'm not sure how to pass the environment in my java program calling code. I'm trying to use -DconsumerEnv="DEV" but unfortunately I get 'null' while trying to print the value from java class. System.out.println("Environment: "+... (4 Replies)
Discussion started by: Pramit
4 Replies

7. Shell Programming and Scripting

how to execute a unix shell script from a java program

Hi All, well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this... Please see the below details...and read the details carefully. I have written some code, logic is 1)from... (4 Replies)
Discussion started by: aish11
4 Replies

8. Shell Programming and Scripting

Shell script to input as if from command line to the java program

Hi, We are having a java server which can run on command line and once initiated, it will prompt options to enter from 0 to 5. The java program kickoff respective operation once number is entered between 0 to 5. However i want to always enter "1" and write another shell program wrapper to start... (4 Replies)
Discussion started by: surya5kn
4 Replies

9. UNIX for Dummies Questions & Answers

Calling Macros in UNIX command

Hi .. I have created a sql macro, i want to execute this through ksh in putty.ie) sql.ksh will contain the macro query ,once i call this ksh ,the macro should trigger. I am able to write a macro : for ex: create macro macro_name (sel * from db_tablename) execute macro_name. Could... (1 Reply)
Discussion started by: Kalaiselvi66
1 Replies

10. Shell Programming and Scripting

Triggering UNIX Script from a JAVA program

Hi I am trying to implement one program, where JAVA needs to trigger the backend UNIX script. Tried with options like String cmdArray = {"/bin/ksh","-c","/SCRIPT_ABSOLUTE_PATH/sampleScript.ksh /FILE_ABSOLUTE_PATH Test_File.dat TEST E SFTP"} When I trigger the script from front end with... (1 Reply)
Discussion started by: karumudi7
1 Replies
DH_JAVADOC(1)							     Debhelper							     DH_JAVADOC(1)

NAME
dh_javadoc - generate javadoc documentation and install in package directory SYNOPSIS
dh_javadoc [debhelper options] [-p<package>] [--sourcedir source path] [Java packages] DESCRIPTION
dh_javadoc is a debhelper program that is responsible for generating HTML Java documentation and installing it in package directories. This should be done in the documentaion package of all Java libraries. Normal Java programs should not be supplied with javadoc documentation (neither in their main package or in a separate documentation package) Any package specified as parameters will be installed into the first package dh_javadoc is told to act on. Use of the standard debhelper -p option is highly recommended. A file named debian/package.javadoc may list additional packages to have documentation generated. These should be separated by new lines. When the Java policy is modified, this script will also install links to the documentation in a common place so that javadoc pages may be interlinked; and also provide a substitution variable for documentation package dependencies. Javadoc generation is done using gjdoc, currently the only free javadoc implementation. When new features are added to this (such as overview files), this script will be modified accordingly. OPTIONS
--sourcedir source path Specify the source path in which to look for Java source files. Java packages Names of Java packages to be documented. TODO
+ Check parameters more carefully. + Add substvar for documentation dependencies + Don't put the 'common' directory in all packages - refer to one in /usr/share/gjdoc & insist on creating that dependency + Other items depend on gjdoc improvements: - Add package listings to common directory - Generate dependency substvar based on additional doc packages used. SEE ALSO
debhelper(7) This program is designed similar to debhelper AUTHOR
Mark Howard <mh@debian.org> 4.7 2012-04-16 DH_JAVADOC(1)
All times are GMT -4. The time now is 08:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy