P.V.Sankar wrote:

> Hi,
> 
> I have been facing a crazy problem from the past 1 year. My counter in
> perl script gets reset very often. For giving some serial number, i
> initiated a text counter, let us say counter.txt and incrementing it in my
> perl script. Randomly it gets reset very often. Any idea why this is
> happening.

Could be a race condition with two instances of the script
trying to access the counter at once.

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to