in reply to Re: Expect Trouble
in thread Expect Trouble

No, either of the error messages can be matched fine if present. The trouble is when one of the error messages are matched, the check for $err_flg is being skipped. This may be caused because the command prompt is matched afterwards.