kbforme has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am using Expect module of perl on UNIX. When I run the script, all the details are displayed on the console. Instead, I would like to have all the details displayed on the console to be logged into a log file.
I tried using
$exp->debug(1); $exp->log_file("server_install_log.txt", "w");
but, still the details are displayed on the console. The log file contains what was returned from previous send and what text was sent.
Could anyone please let me know how to acheive this? I just would like to have a clean console [or minimum details on console] and any other detail to be logged in a log file.
Any help is much appreciated.
Thanks
Edited by planetscape - added code tags and rudimentary formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Logging details to log file
by perl_lover (Chaplain) on Sep 01, 2006 at 07:43 UTC |