The below script is started from octave whne ‘xclock’ is running:
cklog.m (1.2 KB)
and script will exit when ‘xclock’ is shutdown.
But the output file “log_file.txt” (in ~/bin) does not appear before fclose(fid) used.
octave:1> cklog Logging system behavior (temp&cpufreq) RUNNING... warning: strread is obsolete; use textscan instead RUNNING... RUNNING... RUNNING... RUNNING... done!
tail -f log_file.txt
would not give any results before the fclose(fid) appears…
Can I somehow make it write to the file more often so that I can follow the results with the