A good place to start my workday of Expect scripting: The 8 most common errors:
- Have you mis-spelt a variable name?
- Have you mis-spelt a command name?
- Have you used a $ when setting a variable, or left one off when using the contents of a variable?
- Do your brackets balance?
- Have you left spaces in the right places?
- Have you added a new line in the middle of a command and forgotten the \ on the end of all lines except the last?
- Do you need \ protection on anything?
- Have you got () {} or [] mixed up?
I'll keep those in mind.
No comments:
Post a Comment