[Lazarus] TProcess 2-way conversation

Vincent Snijders vsnijders at vodafonevast.nl
Fri Mar 13 14:13:21 CET 2009


Dave Coventry schreef:
> Hi,
> 
> I'm writing a quick an dirty app to automate some commands which would
> normally be issued by a terminal something like PuTTy.
> 
> To do this I'm using TProcess to call plink.exe and then trying to ssh
> into the remote box and issue commands.
> 
> In short I want to log into the remote box and execute commands 'cd
> /opt/someappdir' and './someapp', taking the input through one memo
> and using another memo to issue the commands.
> 
> Can anyone point me in the right direction? I can open the terminal:

See the process example:

http://wiki.lazarus.freepascal.org/Executing_External_Programs#Using_input_and_output_of_a_TProcess
and
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/examples/process/

Vincent



More information about the Lazarus mailing list