- 論壇徽章:
- 0
|
編寫了一個perl expect程序,手工執(zhí)行成功,但放到solaris 的crontab 里自動執(zhí)行時,就報錯:
WARNING: terminal is not fully functional---(CLI More Help)--- (press RETURN)
Display this help: h or H
Move down half display: d, or ^D
Move down one line: Enter, e, ^E, j or ^N
Move down one page: Space, f, ^F or ^V
Move to bottom of output: G, >, or ESC->
Move to top of output: g, < or ESC-<
Move up half display: u or ^U
Move up one line: y, ^Y, k, ^K or ^P
Move up one page: b, ^B, or ESC-v
Quit automore: q, Q, or ZZ
Redraw display: ^L, r or ^R
程序里的環(huán)境參數(shù)設(shè)置如下:
#!/usr/local/bin/perl -w
require ("/usr/local/lib/perl5/site_perl/5.8.5/Expect.pm");
my $exp = new Expect;
sleep(1);
$exp->raw_pty(0);
#$exp->stty();
$exp->exp_internal(1);
$exp->debug(3);
$exp->log_stdout(0);
$exp->restart_timeout_upon_receive(1);
改了其中幾個地方,把0改成1,還是不行,怎么回事。 |
|