tc1364 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use Expect; $Expect::Log_Stdout=0; my $exp = Expect->spawn(); $exp->log_file("/ossd/tc1364/top.log"); $exp->send("/usr/local/bin/top\r"); $exp->expect(10,'CPU states') or exit(1); sleep(1); $exp->soft_close(); exit(0);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Expect & top
by saintmike (Vicar) on Aug 08, 2005 at 18:34 UTC | |
by tc1364 (Beadle) on Aug 08, 2005 at 19:18 UTC | |
by tc1364 (Beadle) on Aug 08, 2005 at 19:33 UTC | |
by AReed (Pilgrim) on Aug 08, 2005 at 22:44 UTC | |
|
Re: Expect & top
by runrig (Abbot) on Aug 08, 2005 at 18:36 UTC |