I have a script that loops around several hundred times, each time gathering a dataset to measure performance over time.
If this process gets a hard kill (either ctrl-c or server reboot etc), is there a graceful way to "dump the results so far" to file?
Currently I append/open, print, then close the file, for every single iteration, is there a neater way to do this?
Thanks.
In reply to How do I dump data to file on hard exit? by starbuck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |