[ale] [OT] expect script question

Robert Heaven roberth1954 at aim.com
Thu Apr 5 19:41:25 EDT 2012


I need to write an expect script to ssh to a host, do a cd to a dir, do an ls to list some file and then do chmod on certain files. I know that executing the "cd" and "ls" commands would use a simple "send" but, how do I capture the output of the "ls" and how do I loop through the list so that I can "send" the chmod command. I know how to do all these things in bash and perl, I'm just not familiar with tcl/tk.

-Robert


More information about the Ale mailing list