PDA

View Full Version : using expect script in C program



nitinmhetre
12-21-2006, 07:25 AM
hi,
does anybody has idea how to use a expect script in C program.
I have made a expect script which is used to do SCP a file from one server to another.Now I want to use this script in my C program to transfer multiple files.
Please give me any hint or links associated with expect script in C program.

Thank You,
Nitin

CornedBee
12-21-2006, 08:25 AM
Use system() or any other spawning system to launch the expect interpreter with the script.