[GRASS-dev] [GRASS GIS] #1660: RFE: add new batch= command line option to main grass7 startup script

GRASS GIS trac at osgeo.org
Wed Feb 19 10:58:50 PST 2014


#1660: RFE: add new batch= command line option to main grass7 startup script
-----------------------------+----------------------------------------------
 Reporter:  hamish           |       Owner:  grass-dev@…              
     Type:  enhancement      |      Status:  new                      
 Priority:  normal           |   Milestone:  7.0.0                    
Component:  Startup          |     Version:  svn-trunk                
 Keywords:  GRASS_BATCH_JOB  |    Platform:  All                      
      Cpu:  All              |  
-----------------------------+----------------------------------------------

Comment(by wenzeslaus):

 It would be nice if it would support not only scripts but any executable
 including GRASS modules.

 Also the question is how the parameters would be passed to the process.

 The whole command in one parameter (the question is how quoted parameters
 would be passed):
 {{{
 grass --batch="g.region -p"
 }}}

 Alternatively, parameters after `--batch=...` can be passed to the
 subprocess.

 {{{
 grass --batch=g.region -p
 }}}


 > perhaps with that done GRASS_BATCH_JOB could be retired for GRASS 7.0?
 (or would there still be some reason to keep it as an alternate method?)

 The only reason to keep it would be backward compatibility and it think
 this is not concern here considering the audience (size and type). Perhaps
 both can be for some time in trunk but not in release.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1660#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list