3 Replies - 1486 Views - Last Post: 30 January 2011 - 10:56 AM Rate Topic: -----

#1 Worqy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 27-December 10

Read programs stream

Posted 30 January 2011 - 01:33 AM

Hello!

This might be quite advanced, and I'm not expecting it to be done right away.

I need help making a program that reads from another Java programs stream.
Or not just reading, I would also wan't to be enable to "insert" commands into the stream.

So first off, I need to run the JAR file.
Then I would wan't to read the text from cmd that comes up and show it in my other java program.

Regards
Worqy

Is This A Good Question/Topic? 0
  • +

Replies To: Read programs stream

#2 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

Re: Read programs stream

Posted 30 January 2011 - 04:36 AM

See http://technojeeves..../52-runtimeexec

You need to download the code and look at collectProcessStreams
Was This Post Helpful? 0
  • +
  • -

#3 Worqy   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 27-December 10

Re: Read programs stream

Posted 30 January 2011 - 10:31 AM

Hey.

Downloaded the code and looking at it right now.
Any change you or someone else could give some guidance through it?

Regards
Worqy
Was This Post Helpful? 0
  • +
  • -

#4 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

Re: Read programs stream

Posted 30 January 2011 - 10:56 AM

Add rs2xml.jar to your classpath and you should be ok
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1