in reply to Re^2: Running an application and capturing output
in thread Running an application and capturing output
Note that I am guessing what his batch file would return to stdout. My test code to produce the above output...C:\Documents and Settings\erickn\Desktop\invexp>e.pl line 1 Can't take log of 0 at C:\Documents and Settings\erickn\Desktop\invexp +\e.pl line 9, <DATA> line 1.
update: I suppose that's not alot of extra info but it is more that he had and might have made it easier for him to figure it out on his own. *shrugs*#use warnings; use strict; use Log::Log4perl qw(); Log::Log4perl::init("process.conf"); my $log = Log::Log4perl->get_logger(); #open APP, "Exception.bat |" or die "File not found\n"; while(<DATA>){ print; log->info; } print "Out of batch file\n"; __DATA__ line 1 line 2
|
|---|