Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-05

Package manager front-end

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Antonio Sanguigni

Hi guys,

I'm playing with the idea to develope a graphical front-end for a console package manager of a linux distro. I have seen TProcess wiki and it is great to capture output. I did not understood well, though, if there a way to interact with the shell using TProcess. I mean, the user with this front-end should be able to answer to the package manager question (for example: Do you want to install (Y/n) ) etc.. . Is it possible to accomplish this with TProcess class ? Is there some example code that can help me ?

Thanks
Antonio

Antonio Sanguigni alias slapshot ---------------------------------------------------------------------- GioveLUG (Linux User Group) - http://www.giovelug.org Edupup (Educational distro) - http://edupup.pieroni.biz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080510/f50de6f9/attachment.html

Reply by email

Vincent Snijders
to Antonio Sanguigni
Antonio Sanguigni wrote 11 lines
Hi guys, I'm playing with the idea to develope a graphical front-end for a console package manager of a linux distro. I have seen TProcess wiki and it is great to capture output. I did not understood well, though, if there a way to interact with the shell using TProcess. I mean, the user with this front-end should be able to answer to the package manager question (for example: Do you want to install (Y/n) ) etc.. . Is it possible to accomplish this with TProcess class ? Is there some example code that can help me ?
Try
http://wiki.lazarus.freepascal.org/Executing_External_Programs#Using_input_and_output_of_a_TProcess

There is an example in lazarus-ccr svn:
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/examples/process

Vincent

Reply by email