-1

I am wondering how can I save the standard output of a GAMS running process in a file? The .lst file is very big and I just need the solution process.

Serj-Tm
  • 16,581
  • 4
  • 54
  • 61

3 Answers3

0

You may split the .lst using retroves or magrit softwares.

Tina
  • 1
0

I have had this same problem. GAMS writes output to the screen in a fashion that cannot be redirected using > or 2>&1. But in unix, you can save the output to file using:

$ gams file.gams LogOption=2

You can read more here:

https://www.gams.com/help/index.jsp?topic=%2Fgams.doc%2Fuserguides%2Fmccarl%2Flogoption_lo.htm

jmlarson
  • 837
  • 8
  • 31
-1

You should add a > filename at the end of your command-line.

Something like

#> ./my-process > filename.res

This will only redirect standard output. Standard error will still be displayed in the terminal window.

Truc
  • 9
  • 1