dinesh14.nish has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I am using perl expect module to run commands on remote systems and using "$exp->log_file" method to read the whole session. Now in some the cases where data is very huge, the complete output of a command does not get saved in log file. For example one of the command produces more than 1 MB of data, in this case only 300/400 MB data gets saved in log file. IS there any way by which I can get complete data in log file?
  • Comment on Not getting complete data for a executed command in log file through exp->log_file for PERL expect module

Replies are listed 'Best First'.
Re: Not getting complete data for a executed command in log file through exp->log_file for PERL expect module
by atcroft (Abbot) on Mar 27, 2014 at 15:25 UTC

    Looking at the Expect docs, I had the thought that maybe you ran into a time out. The FAQ entry entitled "I just want to read the output of a process without expect()ing anything. How can I do this?" triggered the thought, and you may wish to review that section.

    Hope that helps.

Re: Not getting complete data for a executed command in log file through exp->log_file for PERL expect module
by salva (Canon) on Mar 27, 2014 at 15:21 UTC
    In general, transferring large amounts of data through Expect is not a great idea.

    In any case, show us your code!