User Tools

Site Tools


experimenting:capturing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

experimenting:capturing [Wednesday, 29 August 2007 : 16:40:50] (current)
Line 1: Line 1:
 +====== Capturing simulation output ======
 +Normally, everything you print (''​!!''​) in the model is output to the screen (terminal).
 +You can redirect this output to file by means of appending "''>''​ //​yourfile//",​ as in
 +<​code>​
 +$ startmodel mymodel > myfile
 +</​code>​
 +All data printed in the model is now put in the file ''​myfile''​.
 +
 +With a single ''>'',​ the file is overwritten each time.
 +If you use ''>>''​ instead of ''>'',​ the data gets appended at the end of the file.
  
experimenting/capturing.txt · Last modified: Wednesday, 29 August 2007 : 16:40:50 (external edit)