Running GAMS on a server (shells)

Hi, I am a graduate student. I am trying to run GAMS on our university
servers, since I don’t have a license. However I want to pipe my
output to a text file.

So I followed the following command:

gams rough > log.txt &

where rough is the GAMS file. Somehow GAMS is preventing me from
piping. Hence I was wondering if anyone have come across this problem
and if you guys have a solution it would be great. Thanks.

\

Hello,

Pipes work with stdout, but GAMS sends the log to /dev/tty by default,
not to stdout. To output to stdout, do

gams rough lo=3

This can be piped. However, you can skip the pipe and redirect to a
file by doing

gams rough lo=2

which writes to rough.log. To rename the log file, use the logfile
option, (short version: lf), like this:

gams rough lo=2 lf=log.txt

-Steve

On Sat, Mar 26, 2011 at 4:49 PM, mahesh kanna ramaraj
wrote:

Hi, I am a graduate student. I am trying to run GAMS on our university
servers, since I don’t have a license. However I want to pipe my
output to a text file.

So I followed the following command:

gams rough > log.txt &

where rough is the GAMS file. Somehow GAMS is preventing me from
piping. Hence I was wondering if anyone have come across this problem
and if you guys have a solution it would be great. Thanks.


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.




– Steven Dirkse, Ph.D. GAMS Development Corp., Washington DC Voice: (202)342-0180 Fax: (202)342-0181 sdirkse@gams.com http://www.gams.com