Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
This syntax should work for you:
<snip>
send "config terminal\r";expect "# "send "banner login $\n";send "********************************************************************************\n";send "Here is our new corporate approved login banner. Bad ...