[ale] [OT] expect script question

JD jdp at algoloma.com
Fri Apr 6 09:41:15 EDT 2012


On 04/05/2012 07:41 PM, Robert Heaven wrote:
> 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.

Another option for this type of work, especially for 1-time changes, is
cluster-ssh.  I don't know if it fits into this specific need or not, just
another option.


More information about the Ale mailing list