Forum > General

Anything like Expect in TCL available for Lazarus??

(1/3) > >>

wpflum:
I'd like to rework a program I wrote in perl on a linux box into a console app in pascal.  It uses a module called Expect.pm which is a perl version of Expect in TCL.  This module allows me to telnet into a remote box and run commands on it.  What I do is run a database export command on the Informix database on the remote server and then ftp into it and download the resulting data to use on the local machine.  Is there anything like Expect for pascal or is there some other way I can do the same thing with just the generic pascal language or Lazarus itself???

Bill

theo:
I don't know exactly what expect does, but maybe TTelnetSend is similar?

Docs:
http://synapse.ararat.cz/doc/help/tlntsend.TTelnetSend.html
Example:
http://sourceforge.net/mailarchive/message.php?msg_id=4415EBB9.186.CB2BBD%40gebylist.mlp.cz
Source:
http://synapse.ararat.cz/doku.php/download

jolix:
If i understood right lnet component works very well.
Recently i have used telnet with lnet and still working fine.
My app connects with a remote system and basically sends commands to send or request ascii data.

lnet component uses no blocking methods and can work as a server or client.
Additionally and related with last paragraph, you have all events you need:
OnReceive, OnConnect, OnDisconnect, etc.

You have to wait for Almindor answer that is one of the experts and authors of this component, i think.

We have also on this forum others that have huge experience as theo and other experience guys.

Regards,
jolix

wpflum:
It's been a slow brain day for me today, I can't seem to find out where to access the lnet stuff in Lazarus???  Is it included with Lazarus or do I have to install it from an outside source???

Please use small words since I think my wife played a trick on me last night and stuffed my head with cotton balls while I slept  %)

wpflum:
After installing some caffeine my brain ramped it up to three functioning cells so I figured out what I had to download and how to install it to get Lnet, now I just have to get a few more brain cells firing in sequence so I can figure out how to use it.  %)

Navigation

[0] Message Index

[#] Next page

Go to full version