I am quite new in trap17 and i do not know if i am supposed to open new topics. If not please let me know.
I am using normally Perl at work but now i need to use expect. Expect is a language that allows you to interact with prompts such telnet, ftp and staff like that. I have to interact with some consoles simultaneosly and send both of them commands.
Expect uses tcl. I am really new with tcl. I need to open a file and read line by line in order to send those line to a console. Maybe anyone can help me with this basic operation. I think i have to use the exp_open command. In Perl would be something like this:
[br]
[/br]open <INPUT>, FileName[br] or die "Can't open FileName for reading;[/br]while ( <INPUT> )[br]{[/br]print "$_"; #Operation with the line. I should make more complicated things;-)[br]}[/br]















