in reply to How to store the output of the process in my own array?
So you could do
(Yes, I tested this)#!/usr/bin/perl -w use Expect; my @mylog; sub reporter { # print "PASSED:<",join("><",@_).">\n"; push(@mylog,@_); } $object=Expect->spawn("some command I need"); $object->log_file(\&reporter);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to store the output of the process in my own array?
by seanborland (Initiate) on Mar 01, 2004 at 09:51 UTC | |
by bart (Canon) on Mar 01, 2004 at 11:14 UTC | |
by matija (Priest) on Mar 01, 2004 at 12:19 UTC | |
by seanborland (Initiate) on Mar 01, 2004 at 13:46 UTC |