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
_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to