WebMO - Computational chemistry on the WWW
Recent news

WebMO 17.0 is now available for free download!

WebMO 17.0 Pro and Enterprise have a variety of additional features and is available for purchase.

The WebMO app is now available for iOS and Android.

August 17, 2019

Adding flags to qsub Log Out | Topics | Search
Moderators | Edit Profile

WebMO Support Forum » Administering WebMO » Job Manager » Adding flags to qsub « Previous Next »

Author Message
Matthew Rich
Unregistered guest
Posted on Wednesday, November 01, 2017 - 11:56 am:   

Hello, our cluster uses the accounting facility in torque, and we need to add the '-A <account>' flag to our qsub commands or submission scripts. For example:

qsub -N <job> -S /bin/sh -o <stdout> -e <stderr> -r n -q '<queue>' -l '<resource>' -A <account>

Alternatively we could use a "#PBS -A <account>" directive in the submission script.

Ideally we'd like an "extra flags" field that we could use to pass any arbitrary flags to qsub. How can we accomplish this?
JR Schmidt
Moderator
Username: Schmidt

Post Number: 571
Registered: 11-2006
Posted on Wednesday, November 01, 2017 - 12:04 pm:   

You could either:

1) Update the qsub arguments located in 'daemon_pbs.cgi' OR
2) Edit the template submission script, also located in 'daemon_pbs.cgi'

Either would work fine. I would personally go with 1), since many arguments are already passed on the command line.
Matthew Rich
Unregistered guest
Posted on Wednesday, November 01, 2017 - 12:26 pm:   

Thanks for the suggestion. My concern though is that future upgrades to WebMO will overwrite any changes we make to that file. Is there a way we can do this that will survive upgrades, and/or can this be a feature included in the next version?
JR Schmidt
Moderator
Username: Schmidt

Post Number: 572
Registered: 11-2006
Posted on Wednesday, November 01, 2017 - 12:31 pm:   

A bit of a hack, but you can also likely append the argument to the "qsubPath" entry in the <webmo_cgi-bin>/interfaces/pbs.conf file. This will survive upgrades.
Matthew Rich
Unregistered guest
Posted on Wednesday, November 01, 2017 - 12:46 pm:   

Good idea, thank you!

Add Your Message Here
Post:
Username: Posting Information:
This is a public posting area. Enter your username and password if you have an account. Otherwise, enter your full name as your username and leave the password blank. Your e-mail address is optional.
Password:
E-mail:
Options: Post as "Anonymous"
Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration