- #1
- 1,496
- 2
I have a small problem that I would like to solve. I have an idea, but it's kind of half-assed and I'm not sure if there's a better way.
The problem: I have a CFD solution that writes out a solution file everything 5 minutes or so. I currently am writing out 32 total solution files. So, when 32 files are written, the next one will overwrite the first flow file.
What I would like to do is create a "convergence monitor". So, I want to take each solution file and compare it to the previous file. I want to then write the time and change to file.
My half-assed approached is to just create a program that opens all 32 files and calculates the convergence for each file. I would then create a crontab that runs the executable every 5 minutes or so. This would seem to work, but it doesn't seem like an elegant way to solve it.
My question is if there is a way to monitor the folder and simply run the program say when the last flow file is overwritten?
The problem: I have a CFD solution that writes out a solution file everything 5 minutes or so. I currently am writing out 32 total solution files. So, when 32 files are written, the next one will overwrite the first flow file.
What I would like to do is create a "convergence monitor". So, I want to take each solution file and compare it to the previous file. I want to then write the time and change to file.
My half-assed approached is to just create a program that opens all 32 files and calculates the convergence for each file. I would then create a crontab that runs the executable every 5 minutes or so. This would seem to work, but it doesn't seem like an elegant way to solve it.
My question is if there is a way to monitor the folder and simply run the program say when the last flow file is overwritten?