0
      1
      2
      3
      4
      5
      6


You can use TCL/Expect to automate SSH logins to a remote server to execute a command on that server.
This automated login script can be modified to work with any command line program that prompts for passwords or user input. I have used similar scripts to automate CVS logins and updates, and I have automated many other tasks in linux. The following example will SSH into a server and restart apache.

This is a very simple example, but this script can be expanded to do much more complex tasks.

Date posted: April 16, 2008 | Author: | No Comments »

Categories: Linux Programming

Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2013, Neil Bittner. All Rights Reserved.