User Tools

Site Tools


platform:how_do_i_run_gams_in_the_background_on_a_unix_machine

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
platform:how_do_i_run_gams_in_the_background_on_a_unix_machine [2008/05/05 08:20]
support
platform:how_do_i_run_gams_in_the_background_on_a_unix_machine [2012/06/12 17:39] (current)
admin
Line 13: Line 13:
      gams -lo 0 trnsport &      gams -lo 0 trnsport &
  
-The log option flag tells GAMS not to write anything to the screen. +The log option flag tells GAMS not to write anything to the screen. ​You can also use ''​-lo 2'' ​which writes the 
-An even better way is to use a small script called ​''​gamsbatch'' ​that +log to ''​trnsport.log''​.
-reads:  +
- +
-     #​!/​bin/​csh -f +
-     set basename=$1:​r +
-     gams $* -ll 1 -lo 2 -lf $basename.log +
- +
-This will write what normally goes to the screen to a log file instead. +
-For example, if called as ''​gamsbatch ​trnsport'',​ ''​transport.log'' ​will be +
-created. Most GAMS systems contain this script.+
  
 On some systems after you log out even background processes will On some systems after you log out even background processes will
 get killed. On those systems use:  get killed. On those systems use: 
  
-     ​nohup ​gamsbatch ​trnsport+     ​nohup ​gams -lo 2 trnsport ​&
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY platform/how_do_i_run_gams_in_the_background_on_a_unix_machine.txt · Last modified: 2012/06/12 17:39 by admin