From: "HACKER Nora" <nora.hac...@stgkk.at>
> I am not sure whether this is really a Perl problem but maybe anybody
> can point me into the right direction: I am generating insert statements
> and writing them into a file for later execution. Most of the lines are
> written correctly:
> 
> <snipped>
> 
> Obviously, two insert statements get mixed and characters from both
> statements are written alternately. But how does this happen? Is this a
> Perl problem or could this be a buffer problem on the AIX server? Thanks
> for any hints!
 
There are several instances of the script running at the same time 
writing into the same file? It would be better to give each instance 
its own file and then (if necessary) merge the files.
Otherwise you'd have to use some IPC tools (semaphores or something) 
to control access to the file and flush the buffers correcrly to 
prevent such problems.

Jenda
===== je...@krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to