Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Running an application and capturing output

by mifflin (Curate)
on Jun 02, 2005 at 04:58 UTC ( [id://462757]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Running an application and capturing output
in thread Running an application and capturing output

Strict because, well, it's just a good idea.
Warnings because, if he had it on, would probably have seen something like
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.
Note that I am guessing what his batch file would return to stdout. My test code to produce the above output...
#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
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*

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://462757]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-03-29 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found