[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] [OT] expect script question
- Subject: [ale] [OT] expect script question
- From: jdp at algoloma.com (JD)
- Date: Fri, 06 Apr 2012 09:41:15 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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.