On Tue, 1 Jan 2013, Frank Church wrote:


How can a Lazarus/FPC program that is executing a command via TProcess detect 
an input prompt and create a graphical dialog for the input?

e.g. say I execute an ssh command via TProcess which requires a password to be 
input - how could it detect it, prompt for it with a graphical dialog and pass
it on for the command to continue?

There is no way to do this in general.

There are some unix tools that attempt to do this ('expect'), but all of them require some form of script, taylored to the tools that you want to use it for.

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to