pgduke65 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am wanting to write a program that creates a log entry for a process start and end. What I would like is to have 1 entry per process per execution.
As an example:
Logged Job Start End
10/22/14 13:00:00 J1 10/22/14 13:00:00 10/22/14 13:05:00
10/23/14 13:00:00 J1 10/23/14 13:00:00 10/23/14 13:05:00
The question, I have is, If I write the start time at process start, how can I write the end time to the entry? Another process can write to the for its start. As a result, I can't just assume last entry in the file
Any advice is appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log Write position
by Loops (Curate) on Oct 22, 2014 at 05:21 UTC | |
|
Re: Log Write position
by McA (Priest) on Oct 22, 2014 at 06:42 UTC | |
|
Re: Log Write position
by perlron (Pilgrim) on Oct 22, 2014 at 07:45 UTC | |
|
Re: Log Write position
by clueless newbie (Curate) on Oct 22, 2014 at 11:31 UTC | |
|
Re: Log Write position
by pgduke65 (Acolyte) on Oct 22, 2014 at 15:05 UTC |