Ejemplo n.º 1
0
 def _submit_command(self, app):
     # LSF's `bsub` allows one to submit scripts and binaries with
     # the same syntax, so we do not need to create an auxiliary
     # submission script and can just specify the command on the
     # command-line
     sub_argv, app_argv = app.bsub(self)
     prologue = self.get_prologue_script(app)
     epilogue = self.get_epilogue_script(app)
     if prologue or epilogue:
         return (sh_quote_safe_cmdline(sub_argv),
                 sh_quote_unsafe_cmdline(app_argv))
     else:
         return (sh_quote_unsafe_cmdline(sub_argv + app_argv), '')
Ejemplo n.º 2
0
 def _submit_command(self, app):
     # LSF's `bsub` allows one to submit scripts and binaries with
     # the same syntax, so we do not need to create an auxiliary
     # submission script and can just specify the command on the
     # command-line
     sub_argv, app_argv = app.bsub(self)
     prologue = self.get_prologue_script(app)
     epilogue = self.get_epilogue_script(app)
     if prologue or epilogue:
         return (sh_quote_safe_cmdline(sub_argv),
                 sh_quote_unsafe_cmdline(app_argv))
     else:
         return (sh_quote_unsafe_cmdline(sub_argv + app_argv), '')
Ejemplo n.º 3
0
 def _submit_command(self, app):
     sbatch_argv, app_argv = app.sbatch(self)
     return (sh_quote_safe_cmdline(sbatch_argv),
             sh_quote_unsafe_cmdline(app_argv))
Ejemplo n.º 4
0
 def _submit_command(self, app):
     qsub_argv, app_argv = app.qsub_pbs(self)
     if self.queue is not None:
         qsub_argv += ['-q', ('%s' % self.queue)]
     return (sh_quote_safe_cmdline(qsub_argv),
             'cd "$PBS_O_WORKDIR"; ' + sh_quote_unsafe_cmdline(app_argv))
Ejemplo n.º 5
0
 def _submit_command(self, app):
     sbatch_argv, app_argv = app.sbatch(self)
     return (sh_quote_safe_cmdline(sbatch_argv),
             sh_quote_unsafe_cmdline(app_argv))
Ejemplo n.º 6
0
Archivo: sge.py Proyecto: uzh/gc3pie
 def _submit_command(self, app):
     sub_argv, app_argv = app.qsub_sge(self)
     return (sh_quote_safe_cmdline(sub_argv), sh_quote_unsafe_cmdline(app_argv))
Ejemplo n.º 7
0
 def _submit_command(self, app):
     qsub_argv, app_argv = app.qsub_pbs(self)
     if self.queue is not None:
         qsub_argv += ['-q', ('%s' % self.queue)]
     return (sh_quote_safe_cmdline(qsub_argv),
             'cd "$PBS_O_WORKDIR"; ' + sh_quote_unsafe_cmdline(app_argv))
Ejemplo n.º 8
0
Archivo: sge.py Proyecto: imcf/gc3pie
 def _submit_command(self, app):
     sub_argv, app_argv = app.qsub_sge(self)
     return (sh_quote_safe_cmdline(sub_argv),
             sh_quote_unsafe_cmdline(app_argv))