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?