Passing option flags to qsub

213 views
Skip to first unread message

Neil Tedeschi

unread,
Oct 13, 2021, 1:58:36 PM10/13/21
to Nextflow
Hi,

I am working on a univa grid engine cluster.   I need to call qsub with the -b n flag:

    qsub -b n .command.run

nextflow calls qsub as follows:

    qsub -terse .command.run

Is there a way I can have nextflow pass the needed flags to its call of qsub?

Thanks,
Neil

Paolo Di Tommaso

unread,
Oct 13, 2021, 2:16:07 PM10/13/21
to nextflow

--
You received this message because you are subscribed to the Google Groups "Nextflow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nextflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nextflow/e2b00998-33fa-4546-87b3-91ba2784936dn%40googlegroups.com.

Neil Tedeschi

unread,
Oct 13, 2021, 3:28:02 PM10/13/21
to Nextflow
That does not seem to work.  Setting clusterOptions = '-b n' sets the option in the .command.run file.  Unfortunately, I need to set the flag before .command.run is read by qsub.  Without -b n, qsub does not read the file as a script and therefore does not read the options.

Paolo Di Tommaso

unread,
Oct 14, 2021, 3:10:19 AM10/14/21
to nextflow
Therefore cannot be provided via Nextflow. A trick can consist of creating a wrapper script named `qsub` that passthrough the original command and prepend that flag. 



Neil Tedeschi

unread,
Oct 14, 2021, 1:11:07 PM10/14/21
to Nextflow
The trick worked.  Thank you.
Reply all
Reply to author
Forward
0 new messages