Back to Forum | View unanswered posts | View active topics
Topic review - Writing on a file |
Author |
Message |
|
|
Post subject: |
Re: Writing on a file |
|
|
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.
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.
|
|
|
|
Posted: Tue Jan 15, 2019 4:19 pm |
|
|
|
|
|
Post subject: |
Writing on a file |
|
|
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.
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.
|
|
|
|
Posted: Tue Jan 15, 2019 5:04 am |
|
|
|
|
|
It is currently Fri May 13, 2022 10:57 am
|
|