Back to Forum | View unanswered posts | View active topics
|
Page 1 of 1
|
[ 2 posts ] |
|
Author |
Message |
IliaToli
|
Post subject: Writing on a file Posted: 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.
|
|
Top |
|
|
hannes
|
Post subject: Re: Writing on a file Posted: 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.
|
|
Top |
|
|
|
Page 1 of 1
|
[ 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:59 am
|