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! |