我在shell脚本中有一个expect脚本。我的问题是我无法从子expect脚本获取shell父脚本的变量值。#!/bin/sh
spawn telnet myemailserver.com imap
expect "* OK The Microsoft Exchange IMAP4send "a2 EXA
从以下输出中Warning: Permanently added '2.2.2.2' (RSA) to the list of known hostsCookie: 65251-403 EventID: 8900000000
如何才能只将"Cookie: 65251-403 EventID: 8900000000“这一行捕获到一个变量中?以下代