Recent

Author Topic: Launch console commands and keep hand on it  (Read 3954 times)

tibelo

  • Guest
Launch console commands and keep hand on it
« on: September 17, 2004, 10:00:26 am »
Hello.

Any idea to launch console commands and to keep hand on this console, to send commands later in the same context ?

The problem with TProcess, is that it's seems that when you launch a command, after that, you lose the "connection" with the console...

Thank you.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Launch console commands and keep hand on it
« Reply #1 on: September 17, 2004, 12:15:18 pm »
Use the poUsePipes option and send commands to stdin using the Input stream and read the output of stdout  with the Output stream.

Anonymous

  • Guest
Launch console commands and keep hand on it
« Reply #2 on: September 17, 2004, 12:50:12 pm »
Thanks four your answer.

Do you have a small example ?  :oops:
It's for a newbie friend of mine...  :roll:

 

TinyPortal © 2005-2018