its not happening
That's an insufficient description of the problem, I'm afraid. You've shown the code which works, but not the code which doesn't. Nor have you explained in which way it isn't "happening".
Try the Basic Debugging Checklist, perhaps?
In reply to Re: how to connect two DUT console in script
by hippo
in thread how to connect two DUT console in script
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |