C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-21-2006, 07:25 AM   #1
Registered User
 
Join Date: Dec 2006
Posts: 28
Smile using expect script in C program

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
nitinmhetre is offline   Reply With Quote
Old 12-21-2006, 08:25 AM   #2
Cat without Hat
 
CornedBee's Avatar
 
Join Date: Apr 2003
Posts: 8,492
Use system() or any other spawning system to launch the expect interpreter with the script.
__________________
All the buzzt!
CornedBee

"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
CornedBee is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script in games Shakti Game Programming 7 09-27-2006 12:27 AM
Can someome help me with a program please? WinterInChicago C++ Programming 3 09-21-2006 10:58 PM
Need help with my program... Noah C Programming 2 03-11-2006 07:49 PM
How can I run a small ftp script from C program bazeemuddin A Brief History of Cprogramming.com 1 07-01-2003 05:04 PM
My program, anyhelp @licomb C Programming 14 08-14-2001 10:04 PM


All times are GMT -6. The time now is 12:34 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22