expect to work的意思什么意思

当前位置: &
求翻译:It is not realistic for people to expect to work at the same company or for the same employer all of their life是什么意思?
It is not realistic for people to expect to work at the same company or for the same employer all of their life
问题补充:
正在翻译,请等待...
人民是不现实的期望,在同一公司工作或为同一雇主的所有其生活
它不是现实的为了人能准备运作在同一家公司或为他们的生活的同一位雇主全部
它是不现实的期望在同一家公司工作的人,或为同一雇主他们生活的全部
正在翻译,请等待...
我来回答:
参考资料:
* 验证码:
登录后回答可以获得积分奖励,并可以查看和管理所有的回答。 |
我要翻译和提问
请输入您需要翻译的文本!英语翻译expect to keep keep coming 最后讲解这2个句子_百度作业帮
英语翻译expect to keep keep coming 最后讲解这2个句子
你每次工作都迟到,你怎么来期望你能保住这份工作?expect to keep expect to do sth.表示期望做某事,在治理表示期望保住这份工作.keep coming keep doing sth.表示保持某一个动作或状态,这里指总是迟到.希望对你有用咯~
如果你每天都上班迟到,怎么还想保住你的工作呢expect
期望,想要
to keep 保留,保住keep comingExpect实例与expect使用简介 - 笑遍世界的测试技术 - 51Testing软件测试网 51Testing软件测试网-中国软件测试人的精神家园 - Powered by X-Space
All things are difficult before they are easy. 没有软件的裸机是一具僵尸,没有硬件的软件是一个幽灵。2012,专注于Linux和C语言,关注自动化、性能测试,关注开源社区和开源测试工具、方法,尝试测试团队管理!
Expect实例与expect使用简介
& 16:04:07
/ 个人分类:
可用于处理交互式程序;Expect& is& a& program that "talks" to other interactive programs according to a script.首先看我的一个实例吧,我需要再本地运行两个build数据的脚本,然后将build好的数据copy到另一台数据服务器上,并且需要重启数据服务器的应
用。开始我想简单地打通ssh通道,就不用输入密码也能完成scp和远程启动应用服务了(见:
/index.php?uid-225738-action-viewspace-itemid-208847),但不知因为什么原因,居然这次没弄成功
ssh免登陆,所以我就用expect来实现交互式输入密码而不需要手工输入,这也顺便学习了一下expect(前阵子遇到过expect,当时理解
不深入,也自己没成功使用)。还是看我的几行代码吧:#!/usr/bin/expect -fset timeout 10spawn /home/standalone/work/intl-standalone/databrusher/deploy/bin/startSourcingSafePayAccountSwitchDataInitinteractspawn /home/standalone/work/intl-standalone/databrusher/deploy/bin/startSourcingSafePayCategorySwitchDataInitinteractspawn
ssh udas@172.29.61.155 "rm -rf
/home/udas/work/dataserver/berkeleydb/sourcingSafePayAccountSrm
/home/udas/work/dataserver/berkeleydb/startSourcingSafePayCategorySwitch"expect "password:"send "udas\r"spawn
scp -r /home/standalone/work/udasdata/sourcingSafePayAccountSwitch
udas@172.29.61.155:/home/udas/work/dataserver/berkeleydb/expect "password:"send "udas\r"interactspawn
scp -r /home/standalone/work/udasdata/sourcingSafePayCategorySwitch
udas@172.29.61.155:/home/udas/work/dataserver/berkeleydb/expect "password:"send "udas\r"interactspawn ssh udas@172.29.61.155 "/home/udas/work/intl-udas/deploy/bin//home/udas/work/intl-udas/deploy/bin/startws"expect "password:"send "udas\r"interactExpect 的关键命令:Expect(作为语言,‘E’大写)有四个关键命令。第一个重要命令是spawn。spawn
是用于创建新进程的 Expect
命令。它已经出现在我们使用过的每个示例中。在左边,它把路径拖到缺省外壳可执行文件并产生新实例。在这样做时,spawn 返回一个进程标识(在变量
spawn_id 中设置)。这可以在脚本中保存并设置,这给予了 expect 进程控制能力。第二个是
expect(命令,小写‘e’),如果找到匹配,它搜索模式并执行命令。对于每条 expect
命令,可以有几个组,每个组都是由选项标志、与之匹配的模式以及要执行的命令或命令主体组成。缺省情况下,expect“侦听”SDTOUT 和
STDERR,直到找到匹配或 timeout 期满为止。缺省情况下,使用 Tcl
的字符串匹配设施来匹配模式,它实现文件名替换,类似于 C 外壳模式匹配。-re 标志调用 regexp 匹配,-ex
表明必须是精确匹配,不带通配符或变量扩展。expect 的可选标志包括 -i 和
-nocase,前者表示要监控产生的进程,后者强迫在匹配之前将进程输出变为小写。对于完整的说明,在命令提示符下输入 man expect
,以查看 Expect 的系统手册页面文档。第三个重要命令是 send,它用于为由 Expect 脚本正在监控的进程生成输入。send 合并选项以发送给指定的产生的过程(-i),缓慢地发送(-s,例如,在串行通信中,为了不使缓冲区溢出)以及其它几个选项。#!../expect -f# wrapper to make passwd(1) be non-interactive# username is passed as 1st arg, passwd as 2ndset password [lindex $argv 1]spawn passwd [lindex $argv 0]expect "password:"send "$passwordr"expect "password:"send "$passwordr"expect eof上面是称为 carpal 的脚本,它也是来自源代码 Expect 分发版的另一个示例。第四个命令是interact。interact 是 Expect
用来打开用户与产生进程之间通信的命令。-nobuffer 标志将与模式匹配的字符直接发送给用户。-re 告诉 interact
将接下来的模式用作标准正规表达式,‘.’是与输入时每个字符匹配的模式。在交互方式中,缺省情况下,Expect 的 STDOUT 和 STDERR
流的重定向也返回给用户。#!/usr/local/bin/expect# Script. to enforce a 10 minute break# every half hour from typing -# Written for someone (Uwe Hollerbach)# with Carpal Tunnel Syndrome.# If you type for more than 20 minutes# straight, the script. rings the bell# after every character until you take# a 10 minute break.# Author: Don Libes, NIST# Date: Feb 26, '95spawn $env(SHELL)# set start and stop timesset start [clock seconds]set stop [clock seconds]# typing and break, in secondsset typing 1200set notyping 600interact -nobuffer -re . {set now [clock seconds]if {$now-$stop & $notyping} {set start [clock seconds]} elseif {$now-$start & $typing} {send_user "07"}set stop [clock seconds]}使用 Expect 可以完成哪些任务?当脚本调用交互式程序时,缺省情况下,Expect 拦截所有输入和输出(STDIN、STDOUT 和 STDERR)。这允许 Expect
搜索与程序输出匹配的模式,并将输入发送到产生的进程,以模拟用户交互。另外,Expect
可以将进程的控制传递给用户(如果这样指示的话),或者根据请求控制。这些特性不仅使 Expect 对于公共管理任务变得非常有用,而且证实了 Expect 有益于构建脚本,以在程序开发期间执行 I/O 验证。下面是网上另外的实例:下面是一个telnet到指定的远程机器上自动执行命令的Expect脚本。 proc do_console_login {login pass} {   set timeout 5   set done 1   set timeout_case 0   while ($done) {   expect {   "console login:" { send "$login\n" }   "Password:" { send "$pass\n" }   "#" {   set done 0   send_user "\n\nLogin Successfully...\n\n"   }   timeout {   switch -- $timeout_case {   0 { send "\n" }   1 {   send_user "Send a return...\n"   send "\n"   }   2 {   puts stderr "Login time out...\n"   exit 1   }   }   incr timeout_case   }   }   }  }  proc do_exec_cmd {} {   set timeout 5   send "\n"   expect "#"   send "uname -p\n"   expect "#"   send "ifconfig -a\n"   expect "#"   send "exit\n"   expect "login:"   send_user "\n\nFinished...\n\n"  }  if {$argc&2} {   puts stderr "Usage: $argv0 login passwaord.\n "   exit 1  }  set LOGIN [lindex $argv 0]  set PASS [lindex $argv 1]  spawn telnet 10.13.32.30 7001  do_console_login $LOGIN $PASS  do_exec_cmd  close  exit 0上面的脚本只是一个示例,实际中,只需要重新实现do_exec_cmd函数就可以解决类似问题了。   在上面例子中,还可以学习到以下Tcl的语法:   1. 命令行参数   $argc,$argv 0,$argv 1 ... $argv n   if {$argc&2} {   puts stderr "Usage: $argv0 login passwaord.\n "   exit 1   }   2. 输入输出   puts stderr "Usage: $argv0 login passwaord.\n "   3. 嵌套命令   set LOGIN [lindex $argv 0]   set PASS [lindex $argv 1]   4. 命令调用   spawn telnet 10.13.32.30 7001   5. 函数定义和调用   proc do_console_login {login pass} {   ..............   }   6. 变量赋值   set done 1   7. 循环   while ($done) {   ................   }   8. 条件分支Switch   switch -- $timeout_case {   0 {   ...............   }   1 {   ...............   }   2 {   ...............   }   }   9. 运算   incr timeout_case   此外,还可以看到 Expect的以下命令:   send   expect   send_user   可以通过-d参数调试Expect脚本。。另外一个实例(expect : ssh 登陆脚本 登陆一次后以后登陆无须密码)见:http://blog.chinaunix.net/u/21908/showart_1178288.html上面的参考资料:http://blog.opendigest.org/show-289-1.html当前位置:
>>>You cannot expect her to do the housework_____ look after th..
You cannot expect her to do the housework&_____ look after the children.
A. just as well&&&&&&&& B. as well&&&&&&&&C. as well as&&&&&&D. besides
题型:单选题难度:中档来源:月考题
马上分享给同学
据魔方格专家权威分析,试题“You cannot expect her to do the housework_____ look after th..”主要考查你对&&从属连词&&等考点的理解。关于这些考点的“档案”如下:
现在没空?点击收藏,以后再看。
因为篇幅有限,只列出部分考点,详细请访问。
从属连词的概念:
连词用于引导从句以形成句子的一部分或修饰句子的构成要素的叫作从属连词。英语从属连词用法分类详解:
1、引导时间状语从句的从属连词:&(1)表示“当…时候”或“每当”的时间连词。主要的when, while, as, whenever: 如:He jumped up when the phone rang. 电话铃响时他吓了一跳。&&&&&&&&&We listened while the teacher read. 老师朗读时我们听着。 &&&&&&& The phone rang just as I was leaving. 我正要离开,电话铃就响了起来。 (2)表示“在…之前(或之后)”的时间连词。主要的有before, after: 如:Turn the lights off before you leave. 离开前请关灯。 &&&&&&& He started the job soon after he left the university. 他大学毕业后就开始做这份工作。 (3)表示“自从”或“直到”的时间连词。主要的有since, until, till: 如:He has lived here since he got married. 他结婚后就一直住在这儿。 &&&&&&& Most men worked until[till] they're 65. 大多数男人工作到65岁。 (4)表示“一…就”的时间连词。主要的有as soon as, the moment, the minute, the second, the instant, immediately, directly, instantly, once, no sooner…than, hardly…when等: 如:Tell him the news as soon as you see him. 你一见到他就把这消息告诉他。 &&&&&&& I recognized her the moment(that) I saw her. 我一看到她就认出她来了。 &&&&&&& I want to see him the minute(that) he arrives. 他一到来我就要见他。 &&&&&&& I went home directly I had finished work. 我一干完活就回家了。 &&&&&& Once he arrives, we can start. 他一来我们就可以开始。 (5)表示“上次”、“下次”、“每次”等的时间连词。主要的有every time(每次),each time(每次),(the) next time(下次),any time(随时),(the) last time(上次),the first time(第一次): 如:Last time I saw him, he looked ill. 上次我见到他的时候,他好像有病。 &&&&&&& Next time you're in London come and visit us. 你下次来伦敦过来探望我们。 &&&&&&& Do look me up next time you're in London. 你下次到伦敦来,一定来找我。 &&&&&&& Every time I call on him, he is out. 我每次去访问他,他都不在。 &&&&&& You can call me any time you want to. 你随时都可以给我打电话。 【注】every time,each time,any time前不用冠词,(the)next time, (the)last time中的冠词可以省略,而the first time中的冠词通常不能省略。 2、引导条件状语从句的从属连词:这类连词主要有if, unless, as[so] long as, incase等: 如:If anyone calls tell them I'm not at home. 要是有人打电话来,就说我不在家。 &&&&&&& You will fail unless you work hard. 你若不努力就会失败。 &&&&&&& As[So] long as you need me, I'll stay. 只要你需要我,我就留下。 &&&&&&& In case I forget, please remind me about it. 万一我忘记,请提醒我一下。 【注】在条件状语从句中,通常要用一般现在时表示将来意义,而不能直接使用将来时态。不过,有时表示条件的if之后可能用will,但那不是将来时态,而是表示意愿或委婉的请求(will为情态动词): 如:If you will wait a moment, I'll fetch the money. 请等一下,我就去拿钱。 3、引导目的状语从句的从属连词:主要有in order that, so that, in case, for fear等: 如:We used the computer in order that we might save time. 我们使用计算机是为了节约时间。 &&&&&&& Speak clearly so that they may understand you. 说清楚,以便让他们能明白你的意思。 &&&&&&& Be quiet in case you should wake the baby. 安静些,免得把婴儿吵醒。 &&&&&&& He is working hard for fear he should fail. 他努力工作以免会失败。 4、引导结果状语从句的从属连词:主要的有so that, so…that, such…that等: 如:We're all here now, so that the meeting can begin at last. 我们现在都到齐了,终于能开会了。 &&&&&&& It's so difficult a question that none of us can answer it. 那是一个很难的问题,我们没有一个人能回答。 &&&&&&& He shut the window with such force that the glass broke. 他关窗户用力很大,结果玻璃震破了。 【注】so that中的that在口语中通常可以省略。 5、引导原因状语从句的从属连词:主要的有because, as, since, seeing(that), now(that), considering(that)等: 如:He couldn't got to school because he had a cold. 他因患感冒而未能去上学。 &&&&&&& Since everybody is here, let's begin our discussion. 大家都到了,我们就开始吧。 &&&&&&& Seeing that it is 8o'clock, we'll wait no longer. 由于时间已到8点,我们将不再等了。 &&&&&&& Now that you are here, you'd better stay. 你既然来了,最好还是留下吧。 6、引导让步状语从句的从属连词:主要有although, though, eventhough, even if, while, however, whatever, whoever, whenever, wherever等: 如:Although[Though] he is poor, he is well contented. 他虽穷却能知足常乐。 &&&&&&& Though[Even though] it's hard work, I enjoy it. 尽管是苦活,但我乐意干。 &&&&&&& Even if you don't like wine, try a glass of this. 即使你不喜欢喝酒,也尝尝这杯吧。 7、引导方式状语从句的从属连词:主要有as, like, as if, as though, the way等: 如:Do it as[like] he does. 像他那样做。 &&&&&&& He behaved as if nothing had happened. 他装作若无其事的样子。 &&&&&&& They treat me as though I were a stranger. 他们待我如陌生人。 &&&&&&& Nobody else loves you the way(=as) I do.没有人像我这样爱你。 8、引导地点状语从句的从属连词:主要有where, wherever, everywhere等: 如:There were lots of parks where I lived. 我住的地方有许多公园。 &&&&&&& Sit wherever you like. 你想坐在那儿就坐在那儿。 &&&&&&& Everywhere they went, they were warmly welcomed. 他们每到一个地方都受到热烈欢迎。 9、引导比较状语从句的从属连词:主要有than和as…as: 如:It's easier than I thought. 这比我想像的要容易。 &&&&&&& They are as often wrong as they are right. 他们错对各半。 10、引导名词性从句的从属连词:主要有that, if, whether: 如:It is clear enough what he meant. 他是什么意思很清楚。&&&&&&&&Your greatest fault is that you are careless. 你最大的缺点是粗心大意。 &&&&&& Whether it will do us harm remains to be seen.是否对我们有害还要看一看。 &&&&&& She didn't say if he was still alive. 她没说他是否还活着。 从属连词知识体系:
&用作从属连词的六类名词结构:
英语中有些名词结构可用作从属连词,用以引导状语从句,且主要是时间状语从句。这类结构归纳起来有以下六类: 一、the+瞬间名词: 其中的瞬间名词主要包括moment, minute, instant, second等,其意为“一……就……”,相当于as soon as。如:The minute he saw her he fell in love. 他对她一见倾心。&& Telephone me the moment(that) you get the results. 你一有结果,马上给我打电话。&I was so tired that I fell asleep the instant I closed my eyes. 我很累,一合上眼就睡着了。 Sheputdownthereceiverthesecondsherecognizedmyvoice.她一听出是我的声音,马上就放下电话听筒。 注:其中的瞬间名词后可接that,也可省略。另外,有的个别副词(如directly/immediately等)也可表示类似意思。如: Immediately the meal was over,he switchedon the radio.饭一吃完他就把收音机打开。
二、the+季节名词: 其中的季节名词包括spring,summer,autumn,winter,其意为“在……的那年春天、夏天、秋天、冬天。如:His wife left him thes pring he went abroad.在他出国的那年春天,他的妻子离开了他。 He sold his house and went to the souththe summer he lost hisjob.在他失业的那年夏天,他卖掉房子去了南方。 He was sentto prison the winter his third daughter was born.在他第三个女儿出生的那年冬天,他被关进了监狱。 She got married the autumn she graduated from college.她大学毕业的那年秋天就结婚了。 三、the+时间名词:其中的时间名词主要包括hour,day,night,week,month,season,year等,其意为“在……的时候、那天、那个晚上、那周、那个月、那个季节、那年”。如: The hour he wa sin her office,he felt very sad.当他在她办公室的时候,他感到很伤心。 The day here turned home,his father was already dead.他回家的那一天,他的父亲已经死了。 The night I wenttoseeher,shehadleftforBeijingtoattendanimportantmeeting.就我去看她的那个晚上,她到北京去开一个重要的会议了。 Mr Smith didn't go to work the week his wife was ill.史密斯先生在他妻子生病的那个星期没去上班。 They ear helivedinthecountry,he learned alot.他在乡下呆的那一年,他学到了不少东西。 四、the+序数词+time 其中的序数词包括first,second,third,fourth等,其意为“当第几次……的时候”。如: My girlfriend beat me at pokert he first time weplayed.我头一次和女朋友打扑克,她就把我赢了。 These cond time I saw her,she looked like an old woman.我第二次见到她时,她看上去像一个老太婆。 The third time I went there,I found all of them had left and the offices were all empty.我第三次去那儿时,我发现他们都离开了,所有的办公室都是空的。 注:1.next,last也具有类似序数词的性质,因此也具有以上用法。如: Nexttimeyoucomein,pleaseclosethedoor.下次你进来,请关门。 Thelasttimewetalkedhesaidheneededanothertwodays.上次我们谈话时他说他还需要两天。 2.thefirsttime,thesecondtime,thethirdtime等用作连词引导时间状语从句时,其前通常要有定冠词,而(the)nexttime,(the)lasttime引导状语从句时,其中的冠词可以省略,如下面这道上海高考题,其答案是C,不是A:I though ther nice and honest______Imether. A.first time& B.fo rthe first time C.the first timeD.by the first time 五、不定代词+time 其中的不定代词主要包括each,every,any等。如:Every time I ringher,the phone is engaged.我每次给她打电话,电话都占线。 Every time I see him he either wants to tell me his trouble or borrow some money.每次我见到他,他不是向我诉苦,就是要向我借钱。 He felt nervous each times he spoke to him.每次她和他讲话,他都感到紧张。 AnytimeyoucometoLondondolookmeup.你无论什么时候到伦敦来,一定要来看我。 注意:everytime,eachtime,anytime用作连词引导状语从句时其前习惯上不用冠词,它与the first time,these cond time,the third time等引导时间状语从句时其前必须要用定冠词不同。 六、其他名词结构以上归纳的名词结构均用于引导时间状语从句,有些其他结构还可引导其他性质的状语从句,如the way可用于引导方式状语从句,表示“像……一样”。如: The didn’t do it the way we do now.那时他们不像我们现在这样行事。 Joyce looked at me the way alotof girls did.乔伊丝像许多姑娘那样瞧着我。 注:这样用的theway与as用法相似。如:Hold itin both hands,the way(=as)Mummy does.用两只手捧住,像妈妈那样。
发现相似题
与“You cannot expect her to do the housework_____ look after th..”考查相似的试题有:
219920238842207359211183174929209720

我要回帖

更多关于 work的意思 的文章

 

随机推荐