Method: PBS::Batch#submit_script

Defined in:
lib/pbs/batch.rb

#submit_script(script, queue: nil, headers: {}, resources: {}, envvars: {}, qsub: true) ⇒ String

Deprecated.

Use #submit instead.

Submit a script to the batch server

Examples:

Submit a script with a few PBS directives

my_conn.submit_script("/path/to/script",
  headers: {
    Job_Name: "myjob",
    Join_Path: "oe"
  },
  resources: {
    nodes: "4:ppn=12",
    walltime: "12:00:00"
  },
  envvars: {
    TOKEN: "asd90f9sd8g90hk34"
  }
)
#=> "6621251.oak-batch.osc.edu"

Parameters:

  • script (#to_s)

    path to the script

  • queue (#to_s) (defaults to: nil)

    queue to submit script to

  • headers (Hash) (defaults to: {})

    pbs headers

  • resources (Hash) (defaults to: {})

    pbs resources

  • envvars (Hash) (defaults to: {})

    pbs environment variables

  • qsub (Boolean) (defaults to: true)

    whether use library or binary for submission

Returns:

  • (String)

    the id of the job that was created



323
324
325
# File 'lib/pbs/batch.rb', line 323

def submit_script(script, queue: nil, headers: {}, resources: {}, envvars: {}, qsub: true)
  send(qsub ? :qsub_submit : :pbs_submit, script.to_s, queue.to_s, headers, resources, envvars)
end