cfx5solve from the command line: how to monitor the current run?
Hi,
Does anyone know how to monitor the current run when running the program from the command line? Basically, I'd like to see the .out file being created, just like when I use the GUI. I did not find any optional argument in the help...yes, -monitor allows to monitor a finished run, but there's nothing for the current computation. Thanks! |
Fire up the solver manager and click on monitor run in progress. Now you have control over this run and can view, stop or edit it same as a run you started from solver manager.
|
I'll try that, thanks...but it's too bad we can't monitor from the command window.
|
The out file is just a text file. On Linux you'd use:
tail -f file.out to monitor it. Maybe DOS has an equivalent. |
I am going to give away a secret here...if you are used to and like Linux (and tail...) go download this collection of unix tools for (any windows):
http://sourceforge.net/projects/unxutils/ Just put them anywhere and update your PATH in your environment variables, and you are almost back to good old Linux... /Mads |
Thanks Glenn and stumpy, both your suggestions were useful.
I'm running on Linux now, so tail is working, but you have to combine it with a sleep so the out file has the time to be created before it is tailed. Running cfx5solve -monitor is great too. But both solutions have a problem: they do not exit automatically when the job is complete...to exit tail, one must press Ctrl-Z. And to exit CFX-Solve, one must hit enter or the OK button...or maybe it could exit on its own if I switch on some option somewhere?! I'd be glad to hear about that... Edit (small detail): I'd like the monitoring tool to exit once the run is finished so my general script (which runs cfx5solve) can go on. |
Within Windows, create a .bat file will solve this problem.
Just input the same number of commands as your models are, for example: There are three models to be run,file1,file2 and file3. The command will be as follow. cfx5solve -def [file1.def] -moniter cfx5solve -def [file2.def] -moniter cfx5solve -def [file3.def] -moniter Then take a cup of coffee, and waiting for the results... :-) |
cfx5solve -def [file1.def] -monitor does not work: you have to precise what to monitor.
And using those commands, you'll have to exit the solver manually after each run. I think the best solution is to use the cfx5mondata command, and use gnuplot to plot the convergence history. This way one can even save automatically the graphs at the end of the run :) |
I did so within Windows many times, and it works. No manually input needed to end a run. But "-monitor" was excluded from the command. :-)
Before run this batch process, path of the program need to be directed. Maybe it is different for Linux... |
All times are GMT -4. The time now is 14:59. |