★expect
期待, 预期, 盼望, 预料
料想, 指望, 希望, 要求
[口]想, 认为
I'II expect you for supper at six o 'clock sharp.
我盼望你6点整来吃晚饭。
You can't expect me to approve of it.
你别指望我赞成。
习惯用语
as one might expect 正如人们所预料的
as might have been expected (=as was expected) 果然不出所料
be expecting 怀孕了
expect sb. to be 期望某人成为...
expect sth. of sb. 对...的期望[要求]
expect vt.
预料;预期
I expect he'll pass the examination.
我预料他会通过考试。
The chairman of the committee expect to be back next Thursday.
委员会主席预计下星期四回来。
The first message is expected to arrive at 7 o'clock this evening.
第一次信息预计在今晚7点到达。
"As expected, the sales manager gave in his notice at work today."
不出所料销售部经理今天提出了辞职要求。
期待
Most of the parents expect much of their children.
大多数父母都对自己的子女寄予很大希望。
期望
The officer expected his men to do their duty.
军官期望他的部下尽职。
The shop expect to make a small profit this year.
这家店铺期望今年能赚点钱。
I expect David home at 7 o'clock.
我期望大卫七点钟在家。
以为;料想
‘Who broke that cup?’ I expect it was the cat.
“谁打破了杯子?”我看是猫打破的。
A: Is the famous singer going to give any performance at the evening party? B: I expect so.
甲:这位著名歌手在晚会上要表演节目的吧?乙:我想是吧。
I expect not.; I don't expect so.
我认为不会。
习惯用语
be expecting 怀孕
His wife was expecting.
他的妻子当时正怀孕。
Expect 脚本
Expect是一个免费的编程工具语言,用来实现自动和交互式任务进行通信,而无需人的干预。Expect的作者Don Libes在1990年开始编写Expect时对Expect做有如下定义:Expect是一个用来实现自动交互功能的软件套件(Expect [is a] software suite for automating interactive tools)。使用它系统管理员的可以创建脚本用来实现对命令或程序提供输入,而这些命令和程序是期望从终端(terminal)得到输入,一般来说这些输入都需要手工输入进行的。Expect则可以根据程序的提示模拟标准输入提供给程序需要的输入来实现交互程序执行。甚至可以实现实现简单的BBS聊天机器人。 :)
Expect是不断发展的,随着时间的流逝,其功能越来越强大,已经成为系统管理员的的一个强大助手。Expect需要Tcl编程语言的支持,要在系统上运行Expect必须首先安装Tcl。
Expect工作原理 :
从最简单的层次来说,Expect的工作方式象一个通用化的Chat脚本工具。Chat脚本最早用于UUCP网络内,以用来实现计算机之间需要建立连接时进行特定的登录会话的自动化。
Chat脚本由一系列expect-send对组成:expect等待输出中输出特定的字符,通常是一个提示符,然后发送特定的响应。例如下面的Chat脚本实现等待标准输出出现Login:字符串,然后发送somebody作为用户名;然后等待Password:提示符,并发出响应sillyme。