Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Writing on a file
PostPosted: Tue Jan 15, 2019 5:04 am 
I use the potion :a. I have launched some 8 different Singular commands in 8 different shells. I want them to write all in the same file. Is there risk that they write in the same time and the output is gibberish? Or does each of them lock the output file while it writes in it?

Danke schön.


Report this post
Top
  
Reply with quote  
 Post subject: Re: Writing on a file
PostPosted: Tue Jan 15, 2019 4:19 pm 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
That is very dangerous:
if the files are opened with mode ":a", all output goes to the same file
in undefined order, producing gibberish.
If the files are opened in mode ":w", all output but that from the last opener
disappears.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:56 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group