+ Reply to Thread
Results 1 to 3 of 3

Thread: bsub with options

  1. #1
    sh_yyy is offline Junior Member
    Join Date
    May 6th, 2010
    Posts
    6
    Downloads
    1
    Uploads
    0

    Default bsub with options

    HI
    I use lava and i create a scripts testjob like this:
    #!/bin/bash
    #BSUB -q priority
    #BSUB -n 10
    #BSUB -o %J.log
    sleep $1

    i use bsub to submit job
    bsub ./testjob 1000

    but options in scripts did not effect,the job is submit to "normal" queue
    How can I put the bsub options in my scripts?

    Thanks!!

  2. #2
    nopparat's Avatar
    nopparat is offline Junior Member
    Join Date
    July 22nd, 2009
    Location
    Bangkok, Thailand
    Posts
    12
    Blog Entries
    1
    Downloads
    13
    Uploads
    6

    Default bsub with options

    #BSUB directive is executed only when you pass the job script as bsub input (redirect <).
    $ bsub < ./testjob

    If you use bsub with execution script, #BSUB directive will not be executed.
    $ bsub ./testjob

    In case you want to supply arguments for your execution script, you should use -q option to select job queue
    $ bsub -q priority ./testjob 1000

  3. #3
    sh_yyy is offline Junior Member
    Join Date
    May 6th, 2010
    Posts
    6
    Downloads
    1
    Uploads
    0

    Default

    If my execution scripts have arguments, How can i use #BSUB options in my scripts?
    Thanks !!
    Last edited by sh_yyy; June 4th, 2010 at 03:05 AM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts