sandy105 has asked for the wisdom of the Perl Monks concerning the following question:
I have been having an anomaly of late . I have a script in which i use STDOUT to show logs and errors alike to the console and it runs perfectly locally
However when i deploy it and use a TWS scheduler to run it like below:
perl script.perl "arg" >> log.log 2>&1It throws an error and stops the script. The error thrown is about not calling finish on a handle before disconnecting the DB
I am pretty sure i have done that and it never pops up when running normally (without piping to log ) . I have subdued the problem by calling finish explicitly before disconnecting DB. But i would love to know what's happening
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: error while piping output
by bitingduck (Deacon) on Mar 10, 2015 at 08:39 UTC | |
by sandy105 (Scribe) on Mar 10, 2015 at 08:49 UTC | |
by GrandFather (Saint) on Mar 10, 2015 at 08:58 UTC | |
by sandy105 (Scribe) on Mar 26, 2015 at 11:25 UTC | |
|
Re: error while piping output
by Anonymous Monk on Mar 10, 2015 at 08:04 UTC | |
|
Re: error while piping output
by sandy105 (Scribe) on Mar 10, 2015 at 08:11 UTC | |
by Corion (Patriarch) on Mar 10, 2015 at 08:51 UTC |