Invoking gdb through a Java program as subprocess

Advertisement

Hi,
I try to invoke the gdb through a java program using Runtime.exec(...)
as a Process, I also try to get the output of gdb using InputStream object, Is there any way to provide the options to gdb when it is started as Process & also tracing it's output.
please help Me.

Advertisement

Have a read of
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-
traps.htmlwhat ? I'm not sure what you are referring to with your 'what?' BUT that reference should be read by anyone using Runtime.exec().
>
the unix command such as
tail xxxxxxxxxxxxxxxxxx
and write it to a shell script,and invoke it by
java,any problems?I don't agree with this. There is no need for a shell script. This would just add to the complexity without adding any extra functionality.
>
but sabre150 has give a good solutionThank you.

November 30, -0001

Invoking gdb through a Java program as subprocess

Hi, I try to invoke the gdb through a java program using Runtime.exec(...) as a Process, I also try to get the output of gdb using InputStream object, Is there any way to provide the options to gdb when it is started as Process & also tracing it's ou

Running a Unix Script through a Java Program

Hi !!!!!!!!! Can anybody plz suggest me an approach for the following queries - 1.  How to execute a unix script through a java program ?   2.  How to send the o/p of the script to a java program so that it can be used .import java.io.*; public RunSc

Is there any way to close an IE browser on XP through a Java Program

Hi All, I am working on an application which has a web form with various feilds in it, on selecting the fields and clicking submit, the form will launch a WinRunner application in a remote machine and runs a test. For this I am using Tomcat webserver

Invoke.c from a java Program?

Dear All, I have a java program that uses a DLL to invoke another jvm... this doesn't work and I was wondering if there was a way to do this? the code in the dll when put into a win32 console program works fine. but there is an exception when put int

How to invoke Netscape from a java program

Hello In my Java program, I would like to launch a Netscape with one file as parameter in order to see the file with Netscape. Is there someone who can tell me how to do that, thanks. danfeiSystem.getRuntime().exec("fullPathToNetscape/netscape parame

How To Invoke A Command Prompt When I Run a Java Program ??

Currently I want to invoke the Command Prompt(cmd)...through a JAVA PROGRAM.... Can AnyOne tell me how to do it ??? Thanx in advance.....hi, to be more specific, use the following, because you mention cmd i suppose you are using Windows NT so here go

Accessing RUN through java programming

Sir, i need to develop a java application t access "run" in start menu.How can i access the run menu through java programming.?I want to run the program in the run command when we input command through the java program..please help me..if you ha

How to run the jmeter through java program

i wnat interact jmeter through my java program i will pass values to jmeter through my java program i wnat retrive the results from jmeter to my java programRead the manual.Read other 2 answers

How to compile dunamically genrated java files through java program?

Hi, I have a requirement where i generate java files from WSDL dynamically using wsdl2java jaxbri. I need to compile these files dynamically on the fly and jar it. Everything should happen through java program. Bcos everything is dynamic here, no inf

SAP database updations through Java program

Hi All, From Java program, I want to access SAP database batch RFC Please tell me which batch RFC's I have to use for read and update of a table. Please also tell me how to find out a batch RFC for a particular table.Is there any way to find it out l

How my java-program invoke Delphi's program or EXE

Hi All, My java program needs to invoke Delphi's program/EXE, but i donn't know how to do. Pls help!The following code will open a IE browser rightly, ===================== try Runtime rt = Runtime.getRuntime(); Process proc = rt.exec("cmd /c start D

Accessing DB2 data through DBLINK in Java program recieves ORA-02063 error

Hello, Is it posible to access a mainframe DB2 table through a Java JDBC connection utilizing a DBLink / Synonym. Using Toad or SQLDeveloper, I can select the DB2 data just fine. Also, PL/SQL programs can access the data without issues. When I try to

Open Windows Media Player through Java program

I need to open a video and some music in windows media player... but I don't know how.... Can anybody help???I hav implemented windows media player using JSP....i am sending code However for java program i do not know <html> </body> <!-- be

Ternimating a process that is started from insite a java program

Hi, I have a question: I am using Java 1.1 running on a HP-UX platform(HP-UX 11.0). I start a "unix shell script" from inside a java process. Everything starts and runs perfectly fine. If for some reason I MANUALLY kill the java program with a &

Executing Jar Application using Java Programs

Hello there, How can I run a java application using java programs. Desc: public class someapp {    public static void main(String[] ext) {        // How can I execute a jar application from here through java code }You could use java.lang.Runtime.exec

Cannot compile java Programs

hi everyone, when i tried to compile a java Program i had created.I got the following Error. Error occoured during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object I reinstalled the entire thing from the system and when i tried t

Is there any way to check another Java program running status?

HI. I want to write a Java program on hand-set but my program seems needs lots of resources and if there is another Java program running on the same hand-set simultaneously, my program will slow down. So, I want to check if there is another Java prog

Running Java programs ?

Hi, I have installed jdk1.1.8 on my win xp pro machine. I have set the classpath in the enviroment varibles like this.. CLASSPATH=C:\JDK1.1.8\lib\classes.zip when i run a java program through an IDE program like JBuilder it works fine, but when i try

How to execute dos command in Java program?

In Perl, it has System(command) to call dos command. Does java have this thing? or any other way to execute dos command in java program? Because i must call javacto compile a file when the user inputed a java file name.Look in the Runtime class, it i

Getting java program to run (really basic)

Hi, I'm used to running java programs through the programs I write with, like Eclipse, but now I'm trying to run a program on a compuyer without those things and I'm stuck. I'm running Windows XP and have downloaded the SDK Version 1.4.2, The java.co