Singular https://www.singular.uni-kl.de/forum/ |
|
Writing on a file https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2818 |
Page 1 of 1 |
Author: | IliaToli [ Tue Jan 15, 2019 5:04 am ] |
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. |
Author: | hannes [ Tue Jan 15, 2019 4:19 pm ] |
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. |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |