C programming invoke putty/plink

This is a discussion on C programming invoke putty/plink within the C Programming forums, part of the General Programming Boards category; Hi, I am trying to write a program (C language on windows) that logs into different Unix servers (HP and ...

  1. #1
    Registered User
    Join Date
    Jul 2007

    C programming invoke putty/plink

    I am trying to write a program (C language on windows) that logs into different Unix servers (HP and Solaris) and invokes shell scripts there.

    The program basically reads server details (IP (server), user id and password) from a CSV file and invokes shell scripts in the respective servers


    1. Call putty/plink from my program and pass values (server details such as ip, user id, password etc..) to putty/plink (have to use putty because the protocol used is ssh)

    2. Get the error code in case of errors during the connection.

    Is my approach appropriate?
    Last edited by PUBBY; 07-26-2007 at 09:19 AM.

  2. #2
    Registered User
    Join Date
    Apr 2007
    Why not use a ssh library for the connections vs putty? It seems like calling and minuplating putty would be more difficult.

    Of course, i have never done ssh comm so......

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Isn't this almost exactly like another thread here? Can't those two threads be merged?


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 07-07-2009, 10:05 AM
  2. invoke non-static function using ::
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 02-24-2008, 12:29 AM
  3. Invoke IE
    By baddog in forum Windows Programming
    Replies: 2
    Last Post: 01-29-2008, 01:56 PM
  4. invoke the execution of one c program from another
    By kris.c in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-08-2006, 11:10 PM
  5. How to invoke Apps, by Mapping Keyboard
    By govi in forum Windows Programming
    Replies: 5
    Last Post: 11-29-2001, 09:02 AM

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