how to choose not to output lst file in Linux

Problems with syntax of GAMS
Post Reply
Fred
Posts: 372
Joined: 7 years ago

Re: how to choose not to output lst file in Linux

Post by Fred »

Hi Ping,

There is a page on how to to supress/reduce output to the listing file in the GAMS Support Wiki: http://support.gams.com/gams:how_do_i_r ... _.lst_file
To completely supress creation of the lst file you could run the trnsport example as follows (on a Windows machine):

Code: Select all

gams trnsport o=Nul
Please note furthermore that running

Code: Select all

gams trnsport  o myrun.lst
will NOT create trnsport.lst but myrun.lst.

I hope that helps!

Best,
Fred
Fred
Posts: 372
Joined: 7 years ago

Re: how to choose not to output lst file in Linux

Post by Fred »

Ping,

The example referred to Windows (I overlooked that you explicitly asked for a solution under Linux). However, under the Link I sent (http://support.gams.com/gams:how_do_i_r ... _.lst_file) you can find the relevant information:

You can completely shut off output to the lst file from the GAMS model by sending it to NUL under Windows or to /dev/null on most Unix machines. To run a model completely quietly (i.e. without any output to the screen or to the log file), run:
Windows: gams trnsport o=nul lo=2 lf=nul or gams trnsport o=nul lo=0
Unix: gams trnsport o=/dev/null lo=2 lf=/dev/null or gams trnsport o=/dev/null lo=0
Post Reply