[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] [OT] expect script question
- Subject: [ale] [OT] expect script question
- From: roberth1954 at aim.com (Robert Heaven)
- Date: Thu, 5 Apr 2012 19:41:25 -0400
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