open-discussion
open-discussion > RE: File '1.txt' when 'background' mode is used
Jul 6, 2015 08:07 AM | Zaixu Cui
RE: File '1.txt' when 'background' mode is used
Dear Pierre,
I think I have found the solution of this problem.
I have modified 'fopen('1.txt', 'w')' in the script 'psom_run_script.m' to 'fopen(['~' filesep '1.txt'], 'w')'.
As we know, in the linux '~' is a symbol of the personal directory, so this command will create file 1.txt in the personal directory of the user and there is no permission problem.
Best wishes
Zaixu
I think I have found the solution of this problem.
I have modified 'fopen('1.txt', 'w')' in the script 'psom_run_script.m' to 'fopen(['~' filesep '1.txt'], 'w')'.
As we know, in the linux '~' is a symbol of the personal directory, so this command will create file 1.txt in the personal directory of the user and there is no permission problem.
Best wishes
Zaixu
Threaded View
| Title | Author | Date |
|---|---|---|
| Zaixu Cui | Jul 4, 2015 | |
| Zaixu Cui | Jul 6, 2015 | |
| Pierre Bellec | Jul 10, 2015 | |
| Zaixu Cui | Jul 14, 2015 | |
