using expect script in C program

This is a discussion on using expect script in C program within the Linux Programming forums, part of the Platform Specific Boards category; hi, does anybody has idea how to use a expect script in C program. I have made a expect script ...

  1. #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

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

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

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