Re: Expect log_file Issue
- From: Glenn Jackman <glennj@xxxxxx>
- Date: 31 Oct 2007 17:03:41 GMT
At 2007-10-31 11:28AM, "monkeytime" wrote:
Hi,
I've designed an Expect script to login to a device and turn on it's
syslog functionality. The syslog only sends to STDOUT, so a log_file
captures all of the output.
Once the syslog data starts streaming to STDOUT, I just want the
log_file to keep capturing data until I terminate the Expect script
manually. The issue that comes up is that after issuing the syslog
"on" command, the Expect script terminates and the log_file only
contains the output up to the last Expect command that was issued.
Is there a way I can leave the Expect script "open-ended" or still
running so that STDOUT data still goes to the logfile? I've tried a
"while" loop, timeout settings, sleep settings and leaveopen settings
and nothing worked. I've added a command at the end of the script to
expect bogus data (eg. jsdf98weeufh983r) that I know would never
appear, but that only logs about 10 lines of syslog data and then
terminates.
You'll have to show us what you've got so far.
--
Glenn Jackman
"You can only be young once. But you can always be immature." -- Dave Barry
.
- Follow-Ups:
- Re: Expect log_file Issue
- From: monkeytime
- Re: Expect log_file Issue
- References:
- Expect log_file Issue
- From: monkeytime
- Expect log_file Issue
- Prev by Date: Re: can't find package __teapot__ ???
- Next by Date: Re: Parse a Tcl variable name inside a string
- Previous by thread: Expect log_file Issue
- Next by thread: Re: Expect log_file Issue
- Index(es):
Relevant Pages
|