Sunday, June 14, 2020

python code to generate PBS and submission shell script on ts117



(grib) -bash-4.2$ python generate_PBS_bash.py 
(grib) -bash-4.2$ ls -t
submit_PBS.sh  ts_5.pbs  ts_0.pbs                  _jhu_t2m_1_2.csv                      batch.sh
ts_9.pbs       ts_4.pbs  ts_grib_job_template.pbs  parse_grib_4JHU-debug.py              README.md
ts_8.pbs       ts_3.pbs  parse_grib_4JHU.py        time_series_covid19_confirmed_US.csv  LICENSE
ts_7.pbs       ts_2.pbs  generate_PBS_bash.py      parse_grib_4JHU.ipynb                 2019-2020June10-receipt.png
ts_6.pbs       ts_1.pbs  _jhu_t2m_0_1.csv          generate_batch_shell.ipynb            2019-2020June10.grib
(grib) -bash-4.2$ sh submit_PBS.sh 
Your job 13848 ("pygrib_0") has been submitted
Your job 13849 ("pygrib_1") has been submitted
Your job 13850 ("pygrib_2") has been submitted
Your job 13851 ("pygrib_3") has been submitted
Your job 13852 ("pygrib_4") has been submitted
Your job 13853 ("pygrib_5") has been submitted
Your job 13854 ("pygrib_6") has been submitted
Your job 13855 ("pygrib_7") has been submitted
Your job 13856 ("pygrib_8") has been submitted
Your job 13857 ("pygrib_9") has been submitted
(grib) -bash-4.2$ qstat
job-ID  prior   name       user         state submit/start at     queue                          slots ja-task-ID 
-----------------------------------------------------------------------------------------------------------------
  13848 0.00000 pygrib_0   hqin         qw    06/14/2020 22:20:07                                    1        
  13849 0.00000 pygrib_1   hqin         qw    06/14/2020 22:20:07                                    1        
  13850 0.00000 pygrib_2   hqin         qw    06/14/2020 22:20:07                                    1        
  13851 0.00000 pygrib_3   hqin         qw    06/14/2020 22:20:07                                    1        
  13852 0.00000 pygrib_4   hqin         qw    06/14/2020 22:20:07                                    1        
  13853 0.00000 pygrib_5   hqin         qw    06/14/2020 22:20:07                                    1        
  13854 0.00000 pygrib_6   hqin         qw    06/14/2020 22:20:07                                    1        
  13855 0.00000 pygrib_7   hqin         qw    06/14/2020 22:20:07                                    1        
  13856 0.00000 pygrib_8   hqin         qw    06/14/2020 22:20:07                                    1        
  13857 0.00000 pygrib_9   hqin         qw    06/14/2020 22:20:07                                    1 

No comments:

Post a Comment