亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? expect.pod

?? 測試中用于交互的一個腳本.在自動化腳本中會用得到.希望對您有幫助.
?? POD
?? 第 1 頁 / 共 3 頁
字號:
Returns the exit status of $object (if it already exited).=item $object->exp_pty_handle() I<or>=item $object->pty_handle()Returns a string representation of the attached pty, for example:`spawn id(5)' (pty has fileno 5), `handle id(7)' (pty was initializedfrom fileno 7) or `STDIN'. Useful for debugging.=item $object->restart_timeout_upon_receive(0 | 1)If this is set to 1, the expect timeout is retriggered whenever somethingis received from the spawned command.  This allows to perform somealiveness testing and still expect for patterns.    $exp->restart_timeout_upon_receive(1);    $exp->expect($timeout,                 [ timeout => \&report_timeout ],		 [ qr/pattern/ => \&handle_pattern],                );Now the timeout isn't triggered if the command produces any kind of output,i.e. is still alive, but you can act upon patterns in the output.=item $object->notransfer(1 | 0)Do not truncate the content of the accumulator after a match.Normally, the accumulator is set to the remains that come after thematched string.  Note that this setting is per object and not perpattern, so if you want to have normal acting patterns that truncatethe accumulator, you have to add a    $exp->set_accum($exp->after);to their callback, e.g.    $exp->notransfer(1);    $exp->expect($timeout,                 # accumulator not truncated, pattern1 will match again                 [ "pattern1" => sub { my $self = shift;                                       ...                                     } ],                 # accumulator truncated, pattern2 will not match again                 [ "pattern2" => sub { my $self = shift;                                       ...                                       $self->set_accum($self->after());                                     } ],                );This is only a temporary fix until I can rewrite the pattern matchingpart so it can take that additional -notransfer argument.=item Expect::interconnect(@objects);Read from @objects and print to their @listen_groups until an escape sequenceis matched from one of @objects and the associated function returns 0 or undef.The special escape sequence 'EOF' is matched when an object's handle returnsan end of file. Note that it is not necessary to include objects that onlyaccept data in @objects since the escape sequence is _read_ from an object.Further note that the listen_group for a write-only object is always empty.Why would you want to have objects listening to STDOUT (for example)?By default every member of @objects _as well as every member of its listengroup_ will be set to 'raw -echo' for the duration of interconnection. Setting $object->manual_stty() will stop this behavior per object.The original tty settings will be restored as interconnect exits.For a generic way to interconnect processes, take a look at L<IPC::Run>.=item Expect::test_handles(@objects)Given a set of objects determines which objects' handles have data readyto be read. B<Returns an array> who's members are positions in @objects thathave ready handles. Returns undef if there are no such handles ready.=item Expect::version($version_requested or undef);Returns current version of Expect. As of .99 earlier versions are notsupported. Too many things were changed to make versioning possible.=item $object->interact( C<\*FILEHANDLE, $escape_sequence>)interact() is essentially a macro for calling interconnect() forconnecting 2 processes together. \*FILEHANDLE defaults to \*STDIN and $escape_sequence defaults to undef. Interaction ceases when $escape_sequenceis read from B<FILEHANDLE>, not $object. $object's listen group will consist solely of \*FILEHANDLE for the duration of the interaction.\*FILEHANDLE will not be echoed on STDOUT. =item $object->log_group(0 | 1 | undef)Set/unset logging of $object to its 'listen group'. If set all objectsin the listen group will have output from $object printed to them during$object->expect(), $object->send_slow(), and C<Expect::interconnect($object, ...)>. Default value is on. During creation of $object the setting willmatch the value of $Expect::Log_Group, normally 1.=item $object->log_user(0 | 1 | undef) I<or>=item $object->log_stdout(0 | 1 | undef)Set/unset logging of object's handle to STDOUT. This corresponds to Tcl'slog_user variable. Returns current setting if called without parameters.Default setting is off for initialized handles.  When a process object iscreated (not a filehandle initialized with exp_init) the log_stdout settingwill match the value of $Expect::Log_Stdout variable, normally 1.If/when you initialize STDIN it is usually associated with a tty whichwill by default echo to STDOUT anyway, so be careful or you will havemultiple echoes.=item $object->log_file("filename" | $filehandle | \&coderef | undef)Log session to a file.  All characters send to or received from thespawned process are written to the file.  Normally appends to thelogfile, but you can pass an additional mode of "w" to truncate thefile upon open():  $object->log_file("filename", "w");Returns the logfilehandle.If called with an undef value, stops logging and closes logfile:  $object->log_file(undef);If called without argument, returns the logfilehandle:  $fh = $object->log_file();Can be set to a code ref, which will be called instead of printingto the logfile:  $object->log_file(\&myloggerfunc);=item $object->print_log_file(@strings)Prints to logfile (if opened) or calls the logfile hook function.This allows the user to add arbitraty text to the logfile.  Note thatthis could also be done as $object->log_file->print() but would onlywork for log files, not code hooks.=item $object->set_seq($sequence, \&function, \@function_parameters)During Expect->interconnect() if $sequence is read from $object &functionwill be executed with parameters @function_parameters. It is B<_highlyrecommended_> that the escape sequence be a single character since the likelihood is great that the sequence will be broken into to separate readsfrom the $object's handle, making it impossible to strip $sequence fromgetting printed to $object's listen group. \&function should be somethinglike 'main::control_w_function' and @function_parameters should be anarray defined by the caller, passed by reference to set_seq().Your function should return a non-zero value if execution of interconnect()is to resume after the function returns, zero or undefined if interconnect()should return after your function returns.The special sequence 'EOF' matches the end of file being reached by $object.See interconnect() for details.=item $object->set_group(@listener_objects)@listener_objects is the list of objects that should have their handles printed to by $object when Expect::interconnect, $object->expect() or$object->send_slow() are called. Calling w/out parameters will returnthe current list of the listener objects.=item $object->manual_stty(0 | 1 | undef)Sets/unsets whether or not Expect should make reasonable guesses as to when and how to set tty parameters for $object. Will match$Expect::Manual_Stty value (normally 0) when $object is created. If calledwithout parameters manual_stty() will return the current manual_stty setting.=item $object->match_max($maximum_buffer_length | undef) I<or>=item $object->max_accum($maximum_buffer_length | undef)Set the maximum accumulator size for object. This is useful if you thinkthat the accumulator will grow out of hand during expect() calls. Sincethe buffer will be matched by every match_pattern it may get slow if thebuffer gets too large. Returns current value if called without parameters.Not defined by default.=item $object->notransfer(0 | 1)If set, matched strings will not be deleted from the accumulator.Returns current value if called without parameters.  False by default.=item $object->exp_pid() I<or>=item $object->pid()Return pid of $object, if one exists. Initialized filehandles will not havepids (of course).=item $object->send_slow($delay, @strings);print each character from each string of @strings one at a time with $delayseconds before each character. This is handy for devices such as modemsthat can be annoying if you send them data too fast. After each character$object will be checked to determine whether or not it has any new data readyand if so update the accumulator for future expect() calls and print the output to STDOUT and @listen_group if log_stdout and log_group areappropriately set.=back=head2 Configurable Package Variables:=item $Expect::DebugDefaults to 0. Newly created objects have a $object->debug() valueof $Expect::Debug. See $object->debug();	=item $Expect::Do_Soft_CloseDefaults to 0. When destroying objects, soft_close may take up to halfa minute to shut everything down.  From now on, only hard_close willbe called, which is less polite but still gives the process a chanceto terminate properly.  Set this to '1' for old behaviour.	=item $Expect::Exp_InternalDefaults to 0. Newly created objects have a $object->exp_internal()value of $Expect::Exp_Internal. See $object->exp_internal().=item $Expect::IgnoreEintrDefaults to 0. If set to 1, when waiting for new data, Expect willignore EINTR errors and restart the select() call instead.=item $Expect::Log_GroupDefaults to 1. Newly created objects have a $object->log_group()value of $Expect::Log_Group. See $object->log_group().=item $Expect::Log_StdoutDefaults to 1 for spawned commands, 0 for file handlesattached with exp_init(). Newly created objects have a$object->log_stdout() value of $Expect::Log_Stdout. See$object->log_stdout().=item $Expect::Manual_SttyDefaults to 0. Newly created objects have a $object->manual_stty()value of $Expect::Manual_Stty. See $object->manual_stty().=item $Expect::Multiline_Matching	Defaults to 1. Affects whether or not expect() uses the /m flag fordoing regular expression matching. If set to 1 /m is used.	This makes a difference when you are trying to match ^ and $. Ifyou have this on you can match lines in the middle of a page of outputusing ^ and $ instead of it matching the beginning and end of the entireexpression. I think this is handy.=head1 CONTRIBUTIONSLee Eakin <leakin@japh.itg.ti.com> has ported the kibitz scriptfrom Tcl/Expect to Perl/Expect.  Jeff Carr <jcarr@linuxmachines.com> provided a simple example of howhandle terminal window resize events (transmitted via the WINCHsignal) in a ssh session.You can find both scripts in the examples/ subdir.  Thanks to both!Historical notes:There are still a few lines of code dating back to the inspirationalComm.pl and Chat.pl modules without which this would not have been possible.Kudos to Eric Arnold <Eric.Arnold@Sun.com> and Randal 'Nuke your NT box withone line of perl code' Schwartz<merlyn@stonehenge.com> for making theseavailable to the perl public.As of .98 I think all the old code is toast. No way could this have been donewithout it though. Special thanks to Graham Barr for helping make sense ofthe IO::Handle stuff as well as providing the highly recommended IO::Tty module.=head1 REFERENCESMark Rogaski <rogaski@att.com> wrote:"I figured that you'd like to know that Expect.pm has been very useful to AT&T Labs over the past couple of years (since I first talked to Austin about design decisions). We use Expect.pm for managing the switches in our network via the telnet interface, and such automation has significantly increased our reliability. So, you can honestly say that one of the largest digital networks in existence (AT&T Frame Relay) uses Expect.pm quite extensively."=head1 FAQ - Frequently Asked QuestionsThis is a growing collection of things that might help.Please send you questions that are not answered here toRGiersig@cpan.org=head2 What systems does Expect run on?Expect itself doesn't have real system dependencies, but the underlyingIO::Tty needs pseudoterminals. IO::Stty uses POSIX.pm and Fcntl.pm.I have used it on Solaris, Linux and AIX, others report *BSD and OSFas working.  Generally, any modern POSIX Unix should do, but thereare exceptions to every rule.  Feedback is appreciated.See L<IO::Tty> for a list of verified systems.=head2 Can I use this module with ActivePerl on Windows?Up to now, the answer was 'No', but this has changed.You still cannot use ActivePerl, but if you use the Cygwin environment(http://sources.redhat.com), which brings its own perl, and havethe latest IO::Tty (v0.05 or later) installed, it should work (feedbackappreciated).=head2 The examples in the tutorial don't work!The tutorial is hopelessly out of date and needs a serious overhaul.I appologize for this, I have concentrated my efforts mainly on thefunctionality.  Volunteers welcomed.=head2 How can I find out what Expect is doing?If you set  $Expect::Exp_Internal = 1;Expect will tell you very verbosely what it is receiving and sending,what matching it is trying and what it found.  You can do this on aper-command base with  $exp->exp_internal(1);You can also set  $Expect::Debug = 1;  # or 2, 3 for more verbose outputor  $exp->debug(1);which gives you even more output.=head2 I am seeing the output of the command I spawned.  Can I turn that off?Yes, just set  $Expect::Log_Stdout = 0;to globally disable it or   $exp->log_stdout(0);for just that command.  'log_user' is provided as an alias soTcl/Expect user get a DWIM experience... :-)=head2 No, I mean that when I send some text to the spawned process, it gets echoed back and I have to deal with it in the next expect.This is caused by the pty, which has probably 'echo' enabled.  Asolution would be to set the pty to raw mode, which in general iscleaner for communication between two programs (no more unexpectedcharacter translations).  Unfortunately this would break a lot of oldcode that sends "\r" to the program instead of "\n" (translating thisis also handled by the pty), so I won't add this to Expect just like that.But feel free to experiment with C<$exp-E<gt>raw_pty(1)>.=head2 How do I send control characters to a process?A: You can send any characters to a process with the print command. Torepresent a control character in Perl, use \c followed by the letter. Forexample, control-G can be represented with "\cG" . Note that this will notwork if you single-quote your string. So, to send control-C to a process in$exp, do:  print $exp "\cC";Or, if you prefer:  $exp->send("\cC");The ability to include control characters in a string like this is providedby Perl, not by Expect.pm . Trying to learn Expect.pm without a thoroughgrounding in Perl can be very daunting. We suggest you look into some ofthe excellent Perl learning material, such as the books _Programming Perl_and _Learning Perl_ by O'Reilly, as well as the extensive online Perldocumentation available through the perldoc command.=head2 My script fails from time to time without any obvious reason.  It seems that I am sometimes loosing output from the spawned program.You could be exiting too fast without giving the spawned programenough time to finish.  Try adding $exp->soft_close() to terminate theprogram gracefully or do an expect() for 'eof'.Alternatively, try adding a 'sleep 1' after you spawn() the program.It could be that pty creation on your system is just slow (but this israther improbable if you are using the latest IO-Tty).

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品午夜久久久| 成人午夜电影小说| 欧美老肥妇做.爰bbww| 亚洲精品五月天| 欧洲av在线精品| 亚洲国产一区视频| 91精品国产综合久久精品麻豆| 首页国产欧美日韩丝袜| 日韩三级免费观看| 国产精品77777| 国产精品美女久久久久久久久久久| 91丝袜高跟美女视频| 亚洲一区二区综合| 日韩美女一区二区三区| 精品一区二区三区欧美| 中文字幕一区在线观看视频| www.亚洲免费av| 亚洲日本丝袜连裤袜办公室| 91久久一区二区| 日产国产高清一区二区三区| 精品国产91乱码一区二区三区 | 国产白丝精品91爽爽久久| 欧美国产日本韩| 一本大道av一区二区在线播放| 亚洲va韩国va欧美va| 精品电影一区二区三区| 99久久国产综合色|国产精品| 午夜精品久久久久久久| 国产亚洲一本大道中文在线| 91蝌蚪国产九色| 久久99国产精品久久99 | 国产亚洲午夜高清国产拍精品 | 成人黄色免费短视频| 亚洲午夜久久久| 精品少妇一区二区三区 | 亚洲成人av一区二区三区| 日韩欧美黄色影院| 99re成人精品视频| 日韩国产欧美一区二区三区| 欧美日韩成人在线一区| 国产精品一卡二卡在线观看| 亚洲精品第1页| 2021中文字幕一区亚洲| 在线观看视频91| 国产伦精品一区二区三区免费迷| 亚洲另类春色国产| 久久蜜臀精品av| 欧美精品第1页| 不卡的av在线| 国产精品一二二区| 免费在线观看视频一区| 亚洲综合小说图片| 国产精品无遮挡| 精品国产精品网麻豆系列| 欧美日本一区二区三区四区| 91视频免费播放| 成人自拍视频在线| 开心九九激情九九欧美日韩精美视频电影 | 久久精品免视看| 欧美一级午夜免费电影| 色婷婷av久久久久久久| av亚洲产国偷v产偷v自拍| 久久精品国产一区二区| 视频一区二区三区在线| 亚洲电影视频在线| 亚洲最大成人网4388xx| 亚洲日本va在线观看| 国产精品乱码一区二三区小蝌蚪| 久久精品一区二区三区不卡 | 欧美三区免费完整视频在线观看| 成人av在线一区二区三区| 国产精品911| 国产精品69久久久久水密桃| 国产乱码精品一区二区三区五月婷| 蜜臀av性久久久久蜜臀av麻豆| 无码av免费一区二区三区试看| 亚洲一二三区不卡| 亚洲第一在线综合网站| 亚洲成av人影院| 国产精品久久久久一区二区三区 | 亚洲一区av在线| 亚洲蜜臀av乱码久久精品| 中文字幕制服丝袜一区二区三区| 亚洲国产成人在线| 1024亚洲合集| 亚洲精品视频在线| 一区二区三区中文免费| 亚洲自拍偷拍欧美| 日韩中文字幕91| 精品一区二区三区欧美| 国产精品综合视频| 成人av在线影院| 欧洲一区在线电影| 欧美另类videos死尸| 欧美一区二区在线播放| 精品国精品国产| 国产精品视频在线看| 亚洲老妇xxxxxx| 三级在线观看一区二区| 老汉av免费一区二区三区| 国产成人午夜精品5599| 成人黄色av网站在线| 中文字幕av在线一区二区三区| 精品国产亚洲一区二区三区在线观看 | 欧美大片日本大片免费观看| 亚洲精品一区二区精华| 国产精品欧美一级免费| 亚洲狠狠爱一区二区三区| 蜜桃久久av一区| 成人av网站在线观看免费| 色av一区二区| 精品久久久久久久人人人人传媒| 国产精品久久久久久久久果冻传媒| 夜夜爽夜夜爽精品视频| 久久激情五月激情| 91视视频在线观看入口直接观看www | 国产精品电影院| 婷婷综合久久一区二区三区| 国产美女在线精品| 欧美私模裸体表演在线观看| 欧美大片一区二区三区| 国产精品久久久久久久久免费桃花 | 成年人网站91| 日韩欧美在线123| 亚洲免费伊人电影| 精品伊人久久久久7777人| 色综合久久久久久久久| 精品福利二区三区| 亚洲自拍偷拍九九九| 国产精品一区一区| 欧美精品一级二级| 亚洲激情图片一区| 国产成人在线视频网址| 91精品一区二区三区久久久久久| 中文字幕在线一区免费| 另类的小说在线视频另类成人小视频在线 | 日韩欧美久久一区| 亚洲已满18点击进入久久| 国产成人免费在线观看不卡| 91精品久久久久久蜜臀| 亚洲欧美日韩国产综合在线| 国产精品亚洲а∨天堂免在线| 欧美日韩国产区一| 亚洲色图在线播放| 成人一区二区三区视频| 精品国产乱码久久久久久久| 日韩福利电影在线观看| 日本高清免费不卡视频| 欧美激情艳妇裸体舞| 国产毛片精品视频| 日韩美女一区二区三区四区| 日日夜夜免费精品视频| 欧美亚洲国产一卡| 亚洲天堂网中文字| www.欧美亚洲| 中文av一区二区| 日韩视频在线你懂得| 夜夜精品浪潮av一区二区三区| 成人小视频在线| 欧美激情在线一区二区| 国产一区二区伦理| 久久久久久久久伊人| 国产伦精一区二区三区| 久久网这里都是精品| 国产一区二区三区精品视频| 精品三级在线观看| 国产在线精品一区二区不卡了| 日韩一本二本av| 久草这里只有精品视频| 欧美成人猛片aaaaaaa| 美女视频一区二区| 精品国产一二三| 国产乱码精品1区2区3区| 国产日韩一级二级三级| 福利一区二区在线| 国产精品第一页第二页第三页| 99国产精品99久久久久久| 亚洲天堂a在线| 欧美在线高清视频| 视频一区欧美精品| 2023国产精华国产精品| 国产91对白在线观看九色| 综合婷婷亚洲小说| 欧美日韩午夜精品| 久久99精品国产麻豆婷婷洗澡| 国产日韩影视精品| 色婷婷av一区二区三区之一色屋| 亚洲不卡av一区二区三区| 欧美一级搡bbbb搡bbbb| 国产激情视频一区二区三区欧美| 国产精品色婷婷| 欧美色精品天天在线观看视频| 日韩avvvv在线播放| 国产欧美日韩精品一区| 色综合中文字幕| 日本成人在线视频网站| 国产欧美日韩麻豆91| 亚洲精品高清在线观看| 欧美成人综合网站| 国产成人av一区二区三区在线|