problem with expect 5.30 and log_file not closing file 
Author Message
 problem with expect 5.30 and log_file not closing file

We are having a problem with an expect routine that used to work under 5.21
but appears to be broken in 5.30.  The man page for expect states that
log_file with no parameters is meant to close the file.  We do that while a
user is typing in their password then do a 'log_file -a $run_log'.  Using
the 5.30 version of expect with tcl 8.0 now always fails with the following
error:

cannot start logging without first stopping logging
    while executing
"log_file -a $run_log"
    (procedure "console_add_password" line 82)
    invoked from within
"console_add_password $fetch_message $password_src"

Are there others having problems with 'log_file' with no parameters not
working in 5.30?

thanks,




Sun, 26 May 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. log_file in expect :: problem in writing to the log file

2. Multiple log files using expects log_file command

3. Expect: spawned process in sleep state (log_file problem?)

4. Device file not closing on close command

5. Closed file not really closed

6. Closing index files in Clipper 5.3

7. expect with file-open but not file-close -- how to close?

8. Repost: /dev/modem not closed in expect script

9. Strange chars in Expect log_file

10. rotating expect's log_file

11. expect log_file with leaveopen or open

12. Maintaining Environment Variables - Expect Log_File Script

 

 
Powered by phpBB® Forum Software